Skip to main content

Check permission

Check whether a person has been given direct access to a file or folder and with which roles.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/check_permissions · 5 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
ItemStringYesPath in the drive (e.g. Reports/q4.xlsx), or id:{item-id}.
EmailStringNoEmail address of the person; the signed-in account itself when empty (G3).
DriveStringNome/driveWhose files: me/drive (your OneDrive), a person (ann@acme.com), a SharePoint site (contoso.sharepoint.com:/sites/Finance), a library of a site by name (contoso.sharepoint.com:/sites/Finance:/Invoices), or sites/{site-id}/drive or drives/{drive-id}. With an app sign-in, name a person or site.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
has_accessBooleanTrue when the person has a direct permission.
rolesListRoles such as read, write or owner.