Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADAL: Where do I view the resource ID's?

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.

like image 667
nxmohamad Avatar asked Mar 04 '23 04:03

nxmohamad


1 Answers

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.

like image 128
Kalyan Krishna Avatar answered Mar 06 '23 16:03

Kalyan Krishna