Reputation: 1503
I am looking for a JavaScript example to play with the Microsoft Graph API. Although I have found https://github.com/OfficeDev/O365-Angular-Microsoft-Graph-Connect; I don't get it to work. Do I need to be an AAD admin to get it properly registered? I am only a regular user of my organization's Office365 tenant.
I have used the wizard at http://graph.microsoft.io/app-registration. I both registered the app via 1) the current Registration Tool and 2) the new Registration Portal. Both routes provided me a unique clientId. When I try to run the Angular example via clientId 1 I get the following error:
AADSTS90093: Calling principal cannot consent due to lack of permissions.
And via clientId 2 I get the following error:
Application '<clientId>' is not supported for this API version.
What is your guidance?
Upvotes: 0
Views: 3774
Reputation: 5838
Totally agree with Waldek here - this is great advice when getting started building your app. OK - there are 3 registration portals you can try as listed here http://graph.microsoft.io/app-registration. Adding some more details on each of these below:
Hope this helps,
Upvotes: 3
Reputation: 706
Depending on the permissions you configured for your application it may need your administrator's approval. These permissions are known as ones that require admin consent and are specified at http://graph.microsoft.io/docs/authorization/permission_scopes.
If you are building a new application it would be the easiest if you used a developer tenant. You can get it at http://dev.office.com/devprogram. That way you will be able to easily try out different options without requesting changes in your production environment all the time.
Upvotes: 3