statto
statto

Reputation: 502

Get extension property from user in Microsoft Graph

As per the guidelines specified in the Microsoft Azure Docs, I have configured a custom attribute to sync with Azure AD.

When viewing the Tenant Schema Extension App in the Microsoft Graph Explorer using /beta/applications/Blocked_Tenant_Schema_Extension App_Id/extensionProperties, I can see the extension property has been registered.

The problem is I can't work out how to view this in the Microsoft Graph for a user.

I have tried using Extensions for a user, but can't see it against that.

I have also tried using Directory Object in the Microsoft Graph https://graph.microsoft.com/beta/directoryObjects/Blocked-User-Id?$select=id,extension_Blocked-App-ID_otherTelephone

Upvotes: 1

Views: 1296

Answers (1)

juunas
juunas

Reputation: 58723

If you get the user and $select the extension, it should be returned.

E.g.:

https://graph.microsoft.com/v1.0/users/[email protected]?$select=id,extension_b569610d09e44cddbadeb9beaaaaaaaa_ApiRoles

One important thing to note is that the property has the app's id without dashes.

Upvotes: 3

Related Questions