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 Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

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