App permission on SharePoint Folder not displayed, only users and groups

CSOL 0 Reputation points
2024-07-02T10:56:11.3666667+00:00

Hi All,

I'm struggling to get 'app permissions' returned on a specific item within a document library via the graph api.

the api I'm calling is:

drives/{drive-id}/items/{item-id}/permissions

but it only seems to include user / group permissions and not include an app specific permission I in theory just set using the below

{
    "id": "1",
    "roles": [
        "read"
    ],
    "grantedTo": {
        "application": {
            "displayName": "My App(Dev)",
            "id": "My App ID"
        }
    }
} 

Setting the permission returned a 200 response code and a generated 'id' for the permission set.

If I'm calling the wrong api and someone could point me in the right direction that would be really appreciated, documentation as well would be great.

Cheers

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,381 questions
0 comments No comments
{count} votes