B2C-GraphAPI-DotNet icon indicating copy to clipboard operation
B2C-GraphAPI-DotNet copied to clipboard

Authorization_RequestDenied

Open lengqi127 opened this issue 5 years ago • 4 comments

Error Calling the Graph API: { "odata.error": { "code": "Authorization_RequestDenied", "message": { "lang": "en", "value": "Insufficient privileges to complete the operation." }, "requestId": "d84ef9fe-45ee-4b64-be69-3e6feb332ad1", "date": "2019-12-29T12:18:39" } }

lengqi127 avatar Dec 29 '19 12:12 lengqi127

I'm getting this one while trying to update a user too. Even when trying to read a users data.

Can someone please help out with all the needed privileges?

yasinkavakliat avatar Jan 01 '20 20:01 yasinkavakliat

I have the same issue after following the documentation.

Some idea of how to fix it would allow me to continue evaluating AAD B2C.

Thanks.

Bunnywood avatar Jan 03 '20 11:01 Bunnywood

@Bunnywood : you cannot call Microsoft Graph with AAD B2C. you need to use AAD. The samples are available from https://aka.ms/aaddevsamplesv2

jmprieur avatar Jan 03 '20 13:01 jmprieur

Oh sorry this is for user management. I suggest you have a look at https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-user-migration?tabs=applications

jmprieur avatar Jan 03 '20 13:01 jmprieur

Closing as we are archiving this repo. Please refer to instead: Azure AD B2C user account management with .NET Core and Microsoft Graph

derisen avatar Jun 02 '23 15:06 derisen