Microsoft Graph
Last updated
Last updated
There is an included Graph client with two authorization models built right in.
Most of the prebuilt functionality is around the drive, site, lists and teams workloads. However, you can easily extend the functionality if you need something specific!
To use either, go to and create an app registration.
This authorization type is used when supplying direct application ID/Secrets from a registered application. The registered permissions are usually administratively granted and there is no delegation ("as a user") required.
That's it! Once you have the client, call other methods:
This authorization type is best used when you're authorizing a user and your application permissions are assigned as delegated.
A good example of this is a service account authorized to pull a DataVerse table, or read teams messages.
And there you have it, once the initial code is supplied the client is automatically maintained from there on out. If a new token is required the refresh token is automatically supplied and you don't have to think about it again!
To see a full demo including receiving a token from the the response, and awaiting the credentials on load:
If a method is missing or you need to override functionality, feel free to use the built in call to submit your own call with authorization, credential management, and retries built in.
Use RestGraphCall
, as shown below:
The SDK methods closely match what's defined in the .