I have an Azure account and I am making AD API calls for that account using postman, due to some issue I contacted Microsoft and they are asking for Correlation ID and request ID for the same, where can I find these two things?
This is the API I have been calling https://learn.microsoft.com/en-gb/graph/api/user-delta?view=graph-rest-1.0&tabs=http
You can find this information in the response headers. For example, when I execute a failed request, this is what I get in the response headers when I use Graph Explorer:
{
"cache-control": "no-cache",
"client-request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"content-type": "application/json",
"preference-applied": "odata.track-changes",
"request-id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
}
I was not able to find any documentation however I believe client-request-id
response header is the correlation id and request-id
response header is the request id you're looking for.
For errors, this information is also included in the error response body:
{
"error": {
"code": "Authorization_RequestDenied",
"message": "Insufficient privileges to complete the operation.",
"innerError": {
"date": "2021-07-09T12:50:35",
"request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"client-request-id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
}
}
}
UPDATE
Based on Where's the Correlation ID in the Graph API Response?, client-request-id
is the correlation id.