Hi everyone ,
I am trying to access the Graph API from a Synapse Workspace Pipeline using the managed identity of the workspace but I still miss some pieces.
We have an AAD group with "Directory Reader" role assigned and we added the MI of the workspace to this group.
Now I'm using a Web Activity to call the Graph API as follows:
I got the following error:
{
"errorCode": "2108",
"message": "{\"error\":{\"code\":\"InvalidAuthenticationToken\",\"message\":\"Access token validation failure. Invalid audience.\",\"innerError\":{\"date\":\"2022-02-07T15:08:06\",\"request-id\":\"7ce4d1ab-d378-48d8-aa3d-d39a658f68c2\",\"client-request-id\":\"7ce4d1ab-d378-48d8-aa3d-d39a658f68c2\"}}}",
"failureType": "UserError",
"target": "Get Users",
"details": []
}
I think I don't need any token since I'm using the MI, but I don't know exactly what's wrong, whether I am still missing permissions or I need a token anyway.
Any comment will be appreciated.