Microsoft Graph – GRAPH APIs queries for Attribute Set and Custom security attributes at one place

Hi All,
Greetings for the day!!!
As we are preparing for exam SC-300, one of the topic is Custom security attributes. My last two articles discussing Custom security attributes
- Preparing exam SC – 300 / Azure – Create, configure, and manage identities – Create custom security attributes – part 11.1
- Preparing exam SC – 300 / Azure – Create, configure, and manage identities – Assigning Custom security attributes for a user (Preview) – part 11.2
While exploring / studying I also understand Graph APIs available for “Custom security attributes” so thought to share. SHARING IS CARING 🙂
Graph APIs / Queries for “Custom security attributes”
As of now today all these APIs are in “Beta” version
Get all attributes in our tenant
- Method : GET
https://graph.microsoft.com/beta/directory/attributeSets
Get all Custom security attributes in our Tenant
- Method : GET
https://graph.microsoft.com/beta/directory/customSecurityAttributeDefinitions

Creating AttributeSet
- Method : POST
https://graph.microsoft.com/beta/directory/attributeSets
JSON PayLoad
{
"Id": "KnowledgeJunctionAttributeSet",
"description": "Attribute set for Knowledge Junction tenant"
}
Creating Custom security attribute
- Method : POST
https://graph.microsoft.com/beta/directory/customSecurityAttributeDefinitions
JSON PayLoad
{
"name": "JoiningDate",
"attributeSet": "KnowledgeJunctionAttributeSet",
"description": "Knowledge Junction family member joining date",
"isCollection": false,
"isSearchable": true,
"status": "Available",
"type": "Integer",
"userPreDefinedValuesOnly": false
}
References:
- Preparing exam SC – 300 – Identity and Access Administrator – Associate Configure and manage Azure Active Directory roles – Study material – Part 1
- Preparing exam SC – 300 / Azure – Create, configure, and manage identities – Create custom security attributes – part 11.1
- Preparing exam SC – 300 / Azure – Create, configure, and manage identities – Assigning Custom security attributes for a user (Preview) – part 11.2
- Azure – SC – 300 – Identity and Access Administrator – preparation guide
Thanks for reading. If its worth at least reading once, kindly please like and share !!! SHARING IS CARING 🙂
Enjoy the beautiful life !!! Have a FUN !!! HAVE A SAFE LIFE !!! TAKE CARE 🙂
You must log in to post a comment.