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

Graph Explorer - fetching all Custom security attribute in our tenant
Graph Explorer - fetching all Custom security attribute in our tenant

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

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

fig : Graph Explorer - fetching all attribute sets from my tenant
fig : Graph Explorer – fetching all attribute sets from my tenant

Get all Custom security attributes in our Tenant

  • Method : GET

https://graph.microsoft.com/beta/directory/customSecurityAttributeDefinitions

fig : Graph Explorer - fetching all Custom security attribute in our tenant
fig : Graph Explorer – fetching all Custom security attribute in our tenant

Creating AttributeSet

  • Method : POST

https://graph.microsoft.com/beta/directory/attributeSets

JSON PayLoad
{
  "Id": "KnowledgeJunctionAttributeSet",
  "description": "Attribute set for Knowledge Junction tenant"
}

fig : Graph Explorer - creating attribute set
fig : Graph Explorer – creating attribute set

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
}

fig : Graph Explorer - creating Custom security attribute
fig : Graph Explorer – creating Custom security attribute

References:

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 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: