Reputation: 61636
My company uses Office 365 for email, calendar and all that. I'd like to be able to manage users from our internal application. And by manage, I mean add or remove from groups. Or create new groups and add people to those. Or make people admins...
Is there an API for that? Either .NET or Web?
I've tried the Microsoft Graph reference application (e.g. https://graphexplorer2.azurewebsites.net/), but it can't even log me in - always gives Sorry, but we’re having trouble signing you in. We received a bad request error. AADSTS90093: Calling principal cannot consent due to lack of permissions.
.
Upvotes: 1
Views: 4091
Reputation: 36
To do everything you want to do, you have to use the Microsoft Graph API: http://graph.microsoft.io/docs/overview/overview The Graph Explorer you're trying to use (e.g. https://graphexplorer2.azurewebsites.net/) is the website used to test GET calls.
The error you get is because you're not logged in with a user who have the rights to call this API, try with an admin user or give the rights to your user with an admin account.
Upvotes: 2