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 Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

Answer accepted by question author
  1. Bhanu Kiran 3,616 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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.