I'm new to using adal-node
npm package.
In the example it mentions:
var resource = '00000002-0000-0000-c000-000000000000';
Where is this ID from? From my use-case, I just want to batch update users in my AD.
A resource is a service/app/api for which you ask an Identity provider like Azure AD to issue tokens for. You can also you the AppId (client Id) as a resource as well
'00000002-0000-0000-c000-000000000000' is the client Id of Azure AD Graph API (https://graph.windows.net/ ). This Api is being deprecated in favor of Microsoft Graph "https://graph.microsoft.com", which is the resource you should use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With