{ "opencollection": "1.0.0", "info": { "name": "Microsoft Graph Admin Admin.admin directoryRoles.directoryObject API", "version": "1.0.0" }, "items": [ { "info": { "name": "directoryRoles.directoryObject", "type": "folder" }, "items": [ { "info": { "name": "Microsoft Graph List members of a directory role", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$top", "value": "50", "type": "query", "description": "Show only the first n items" }, { "name": "$skip", "value": "", "type": "query", "description": "Skip the first n items" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" }, { "name": "$count", "value": "", "type": "query", "description": "Include count of items" }, { "name": "$orderby", "value": "", "type": "query", "description": "Order items by property values" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs." }, { "info": { "name": "Microsoft Graph Remove directory role member", "type": "http" }, "http": { "method": "DELETE", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/:directoryObject-id/$ref", "headers": [ { "name": "If-Match", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "directoryObject-id", "value": "", "type": "path", "description": "The unique identifier of directoryObject" } ] }, "docs": "Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs." }, { "info": { "name": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.application", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/:directoryObject-id/graph.application", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "directoryObject-id", "value": "", "type": "path", "description": "The unique identifier of directoryObject" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.application" }, { "info": { "name": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.device", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/:directoryObject-id/graph.device", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "directoryObject-id", "value": "", "type": "path", "description": "The unique identifier of directoryObject" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.device" }, { "info": { "name": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/:directoryObject-id/graph.group", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "directoryObject-id", "value": "", "type": "path", "description": "The unique identifier of directoryObject" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group" }, { "info": { "name": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/:directoryObject-id/graph.orgContact", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "directoryObject-id", "value": "", "type": "path", "description": "The unique identifier of directoryObject" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact" }, { "info": { "name": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/:directoryObject-id/graph.servicePrincipal", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "directoryObject-id", "value": "", "type": "path", "description": "The unique identifier of directoryObject" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal" }, { "info": { "name": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.user", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/:directoryObject-id/graph.user", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "directoryObject-id", "value": "", "type": "path", "description": "The unique identifier of directoryObject" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.user" }, { "info": { "name": "Microsoft Graph Get the number of the resource", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/$count", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" } ] }, "docs": "Microsoft Graph Get the number of the resource" }, { "info": { "name": "Microsoft Graph List members of a directory role", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/$ref", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$top", "value": "50", "type": "query", "description": "Show only the first n items" }, { "name": "$skip", "value": "", "type": "query", "description": "Skip the first n items" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" }, { "name": "$count", "value": "", "type": "query", "description": "Include count of items" }, { "name": "$orderby", "value": "", "type": "query", "description": "Order items by property values" } ] }, "docs": "Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs." }, { "info": { "name": "Microsoft Graph Add directory role member", "type": "http" }, "http": { "method": "POST", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/$ref", "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs." }, { "info": { "name": "Microsoft Graph Remove directory role member", "type": "http" }, "http": { "method": "DELETE", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/$ref", "headers": [ { "name": "If-Match", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "@id", "value": "", "type": "query", "description": "The delete Uri" } ] }, "docs": "Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs." }, { "info": { "name": "Microsoft Graph Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.application", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$top", "value": "50", "type": "query", "description": "Show only the first n items" }, { "name": "$skip", "value": "", "type": "query", "description": "Skip the first n items" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" }, { "name": "$count", "value": "", "type": "query", "description": "Include count of items" }, { "name": "$orderby", "value": "", "type": "query", "description": "Order items by property values" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection" }, { "info": { "name": "Microsoft Graph Get the number of the resource", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.application/$count", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" } ] }, "docs": "Microsoft Graph Get the number of the resource" }, { "info": { "name": "Microsoft Graph Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.device", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$top", "value": "50", "type": "query", "description": "Show only the first n items" }, { "name": "$skip", "value": "", "type": "query", "description": "Skip the first n items" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" }, { "name": "$count", "value": "", "type": "query", "description": "Include count of items" }, { "name": "$orderby", "value": "", "type": "query", "description": "Order items by property values" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection" }, { "info": { "name": "Microsoft Graph Get the number of the resource", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.device/$count", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" } ] }, "docs": "Microsoft Graph Get the number of the resource" }, { "info": { "name": "Microsoft Graph Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.group", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$top", "value": "50", "type": "query", "description": "Show only the first n items" }, { "name": "$skip", "value": "", "type": "query", "description": "Skip the first n items" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" }, { "name": "$count", "value": "", "type": "query", "description": "Include count of items" }, { "name": "$orderby", "value": "", "type": "query", "description": "Order items by property values" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection" }, { "info": { "name": "Microsoft Graph Get the number of the resource", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.group/$count", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" } ] }, "docs": "Microsoft Graph Get the number of the resource" }, { "info": { "name": "Microsoft Graph Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.orgContact", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$top", "value": "50", "type": "query", "description": "Show only the first n items" }, { "name": "$skip", "value": "", "type": "query", "description": "Skip the first n items" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" }, { "name": "$count", "value": "", "type": "query", "description": "Include count of items" }, { "name": "$orderby", "value": "", "type": "query", "description": "Order items by property values" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection" }, { "info": { "name": "Microsoft Graph Get the number of the resource", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.orgContact/$count", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" } ] }, "docs": "Microsoft Graph Get the number of the resource" }, { "info": { "name": "Microsoft Graph Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.servicePrincipal", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$top", "value": "50", "type": "query", "description": "Show only the first n items" }, { "name": "$skip", "value": "", "type": "query", "description": "Skip the first n items" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" }, { "name": "$count", "value": "", "type": "query", "description": "Include count of items" }, { "name": "$orderby", "value": "", "type": "query", "description": "Order items by property values" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection" }, { "info": { "name": "Microsoft Graph Get the number of the resource", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.servicePrincipal/$count", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" } ] }, "docs": "Microsoft Graph Get the number of the resource" }, { "info": { "name": "Microsoft Graph Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.user", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$top", "value": "50", "type": "query", "description": "Show only the first n items" }, { "name": "$skip", "value": "", "type": "query", "description": "Skip the first n items" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" }, { "name": "$count", "value": "", "type": "query", "description": "Include count of items" }, { "name": "$orderby", "value": "", "type": "query", "description": "Order items by property values" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Microsoft Graph Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection" }, { "info": { "name": "Microsoft Graph Get the number of the resource", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/directoryRoles/:directoryRole-id/members/graph.user/$count", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "directoryRole-id", "value": "", "type": "path", "description": "The unique identifier of directoryRole" }, { "name": "$search", "value": "", "type": "query", "description": "Search items by search phrases" }, { "name": "$filter", "value": "", "type": "query", "description": "Filter items by property values" } ] }, "docs": "Microsoft Graph Get the number of the resource" } ] } ], "bundled": true }