Azure-Samples / active-directory-dotnet-graphapi-web

A .NET 4.5 MVC web app that demonstrates how to query the Azure AD Graph API using the Azure AD Graph Client Library
82 stars 68 forks source link

Insufficient privileges when creating user #16

Open lencharest opened 9 years ago

lencharest commented 9 years ago

Running the unedited sample in VS 2013 on Windows 8.1 with user demoUser@graphDir1.onMicrosoft.com. When I try to create a new user, I get a graph client error with the message "Insufficient privileges to complete the operation." Please advise.

LambertGreen commented 9 years ago

Hi lencharest. The demo user does not privileges to create users - it can do read operations but no write operations. To run the user creation scenarios please setup your own tenant and use an administrator identity for the scenarios requiring write permissions.