Get Item Permission
Gets information about an item's permission.
Parameters
Parameter | Description |
---|---|
Item ID | User, group or site ID depending on the chosen Entity Type. Leave as 'root' to retrieve a permission of a Drive Item. |
Parent Entity ID | User, group or site ID depending on the chosen Entity Type. |
Parent Entity Type | The type of target for which to retrieve items. |
Permission ID | The ID of the permission to get. |
Example Output
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('98c4f2fe-59ff-47cb-b152-4d0f48fdce49')/drive/items('3d24feb8-2565-46e2-8659-85fa3efa97c1')/permissions/$entity",
"id": "aTowIy5mfG1lbWJlcnNoaXB8ZGFuaWVsLmt1cGVybWFuQGhhdml2YmxpbmtvcHMub25taWNyb3NvZnQuY29t",
"roles": [
"owner"
],
"grantedToV2": {
"user": {
"@odata.type": "#microsoft.graph.sharePointIdentity",
"displayName": "test",
"email": "test.test@testblinkops.onmicrosoft.com",
"id": "98c4f2fe-59ff-47cb-b152-4d0f48fdce49"
},
"siteUser": {
"displayName": "test",
"email": "test.test@testblinkops.onmicrosoft.com",
"id": "3",
"loginName": "i:0#.f|membership|test.test@testblinkops.onmicrosoft.com"
}
},
"grantedTo": {
"user": {
"displayName": "test",
"email": "test.test@testblinkops.onmicrosoft.com",
"id": "98c4f2fe-59ff-47cb-b152-4d0f48fdce49"
}
}
}
Workflow Library Example
Get Item Permission with Onedrive and Send Results Via Email