{ "opencollection": "1.0.0", "info": { "name": "Microsoft Graph Admin Admin.admin users.appRoleAssignment API", "version": "1.0.0" }, "items": [ { "info": { "name": "users.appRoleAssignment", "type": "folder" }, "items": [ { "info": { "name": "Microsoft Graph List appRoleAssignments granted to a user", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/users/:user-id/appRoleAssignments", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "user-id", "value": "", "type": "path", "description": "The unique identifier of user" }, { "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 appRoleAssignments that are currently granted to a user. This operation also returns app role assignments granted to groups that the user is a direct member of." }, { "info": { "name": "Microsoft Graph Grant an appRoleAssignment to a user", "type": "http" }, "http": { "method": "POST", "url": "https://graph.microsoft.com/v1.0/users/:user-id/appRoleAssignments", "params": [ { "name": "user-id", "value": "", "type": "path", "description": "The unique identifier of user" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Assign an app role to a user, creating an appRoleAssignment object. To grant an app role assignment to a user, you need three identifiers:" }, { "info": { "name": "Microsoft Graph Get appRoleAssignments from users", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/users/:user-id/appRoleAssignments/:appRoleAssignment-id", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "user-id", "value": "", "type": "path", "description": "The unique identifier of user" }, { "name": "appRoleAssignment-id", "value": "", "type": "path", "description": "The unique identifier of appRoleAssignment" }, { "name": "$select", "value": "", "type": "query", "description": "Select properties to be returned" }, { "name": "$expand", "value": "", "type": "query", "description": "Expand related entities" } ] }, "docs": "Represents the app roles a user is granted for an application. Supports $expand." }, { "info": { "name": "Microsoft Graph Update the navigation property appRoleAssignments in users", "type": "http" }, "http": { "method": "PATCH", "url": "https://graph.microsoft.com/v1.0/users/:user-id/appRoleAssignments/:appRoleAssignment-id", "params": [ { "name": "user-id", "value": "", "type": "path", "description": "The unique identifier of user" }, { "name": "appRoleAssignment-id", "value": "", "type": "path", "description": "The unique identifier of appRoleAssignment" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Microsoft Graph Update the navigation property appRoleAssignments in users" }, { "info": { "name": "Microsoft Graph Delete appRoleAssignment", "type": "http" }, "http": { "method": "DELETE", "url": "https://graph.microsoft.com/v1.0/users/:user-id/appRoleAssignments/:appRoleAssignment-id", "headers": [ { "name": "If-Match", "value": "" } ], "params": [ { "name": "user-id", "value": "", "type": "path", "description": "The unique identifier of user" }, { "name": "appRoleAssignment-id", "value": "", "type": "path", "description": "The unique identifier of appRoleAssignment" } ] }, "docs": "Delete an appRoleAssignment that has been granted to a user." }, { "info": { "name": "Microsoft Graph Get the number of the resource", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/users/:user-id/appRoleAssignments/$count", "headers": [ { "name": "ConsistencyLevel", "value": "" } ], "params": [ { "name": "user-id", "value": "", "type": "path", "description": "The unique identifier of user" }, { "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 }