Skip to content

Instantly share code, notes, and snippets.

@mirontoli
Last active October 4, 2019 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirontoli/a242cd611a82a59d401ee9142672c529 to your computer and use it in GitHub Desktop.
Save mirontoli/a242cd611a82a59d401ee9142672c529 to your computer and use it in GitHub Desktop.
POST https://graph.microsoft.com/v1.0/groups/
{
  "description": "tolle035",
  "displayName": "tolle035",
  "groupTypes": [
    "Unified"
  ],
  "mailEnabled": true,
  "mailNickname": "tolle035",
  "securityEnabled": false
}

Schema Extensions

get a schema extension details

GET https://graph.microsoft.com/v1.0/schemaExtensions?$filter=id eq '<extension_id>'

get a group

GET https://graph.microsoft.com/v1.0/groups?$filter=mailNickname eq 'tolle010'

Add extension information to a group

PATCH https://graph.microsoft.com/v1.0/groups/9f3d6abe-ee96-4c4f-bb2c-14aa7b77b591
{
    "extqadsf2p_tolle2":{
        "ProjectNbr":"204163"
    }   
}

Get a group with extension values

GET https://graph.microsoft.com/v1.0/groups/9f3d6abe-ee96-4c4f-bb2c-14aa7b77b591?$select=extqadsf2p_tolle2

Filter the extension values:

GET https://graph.microsoft.com/v1.0/groups?$filter=extqadsf2p_tolle2/ProjectNbr eq '204163'&$select=displayname,extqadsf2p_tolle2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment