Access Microsoft Graph API via JavaScript

I am looking for an example JavaScript for playing with the Microsoft Graph API. Although I found https://github.com/OfficeDev/O365-Angular-Microsoft-Graph-Connect ; I do not work. Do I have to be an AAD administrator to register it correctly? I am just an ordinary user of my Office365 organization.

I used the wizard at http://graph.microsoft.io/app-registration . I registered the application through 1) the current registration tool and 2) a new registration portal. Both routes provided me with a unique client. 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 through clientId 2, I get the following error:

Application '<clientId>' is not supported for this API version.

What is your guide?

0
source share
2 answers

Depending on the permissions configured for your application, your administrator approval may be required. These permissions are known as those that require administrator consent and are listed in http://graph.microsoft.io/docs/authorization/permission_scopes .

If you are creating a new application, it would be easier if you used a tenant developer. You can get it at http://dev.office.com/devprogram . This way, you can easily try out different options without requiring changes to your production environment all the time.

+3
source

Waldek - . - 3 , , http://graph.microsoft.io/app-registration. :

, ,

+3

Source: https://habr.com/ru/post/1618977/


All Articles