I downloaded a console application from Microsoft.
A Console application for Azure AD B2C User Management the Azure AD Graph. This sample demonstrates how to perform user management by calling the Azure AD Graph in an automated fashion. This aproach is similar to a service account scenario where the application acts as itself, not as a user that signed-in via an interactive user login. This is done by using the OAuth 2.0 client credentials grant. You find this code in a zip fine in attach of this post.
The application covered by this sample is a Windows command-line interface (CLI) that allows you to invoke various methods.
If I run this code, I receive this error:
Insufficient privileges to complete the operation.
I can't understand what I have to do. In another machine this code is working fine.