Getting "Requested API is not supported in Admin On-Behalf-Of mode" error while running teams API even though admin granted consent
"https://graph.microsoft.com/v1.0/me/joinedTeams" API returning 401 error with message as shown below
{ "error": { "code": "Unauthorized", "message": "Requested API is not supported in Admin On-Behalf-Of mode.", "innerError": { "date": "2022-08-30T08:14:51", "request-id": "8acdeb30-a9c5-434c-bfcf-ca9cbd383cbd", "client-request-id": "8acdeb30-a9c5-434c-bfcf-ca9cbd383cbd" } } }
Below are the permissions granted on app registration side
Below are the permissions granted on tenant side



