The below API call to /groups endpoint always returns HTTP 500 Internal server error with the following response:
{
"error": {
"code": "InternalServerError",
"message": "Unable to find target address",
"innerError": {
"date": "2022-06-16T05:59:59",
"request-id": "ce75ed30-1103-4aad-85d1-52b88922b013",
"client-request-id": "ce75ed30-1103-4aad-85d1-52b88922b013"
}
}
}
curl --location --request GET 'https://graph.microsoft.com/v1.0/groups' \
--header 'Authorization: Bearer <redacted>'
I have added the required scope for this endpoint: Group.Read.All
(as mentioned here - https://learn.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0&tabs=http)
Tried this API call multiple times, but same error response is being returned.
Getting the same error for other endpoints also like:
https://graph.microsoft.com/v1.0/me/joinedTeams
Please help resolve this issue.