Microsoft Graph - Custom Security Attribute Access?

user-193-5861395-18 26 Reputation points
2022-10-25T19:41:43.303+00:00

How can I access "custom security attributes" through a registered application in Azure AD via the Microsoft Graph rest API?

It's not included in the basic user properties, which I believe is documented as "not one of the basic properties", but it still doesn't show up with a $select in the query targeting the attribute.

It also doesn't show up in v1.0 or the beta.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,094 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,143 questions
0 comments No comments
{count} vote

Accepted answer
  1. Bhanu Kiran 3,526 Reputation points
    2022-10-25T21:20:01.267+00:00

    Hello @user-193-5861395-18 ,

    I have created a custom security attributes on Azure AD and using the following endpoint I am able to query the custom security attributes.

    GET https://graph.microsoft.com/beta/users/{user-id}?$select=customSecurityAttributes  
    

    254045-custom-security-attributes.png

    Could you please check and validate the same.

    Hope this helps.
    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

0 additional answers

Sort by: Most helpful