Show / Hide Table of Contents

roles

Graph Methods

Type: A = Application Permission, D = Delegate Permission

Ver Type Method
V1 PATCH /drives/{drive-id}/items/{item-id}/permissions/{perm-id}
V1 PATCH /groups/{group-id}/drive/items/{item-id}/permissions/{perm-id}
V1 PATCH /me/drive/items/{item-id}/permissions/{perm-id}
V1 PATCH /sites/{site-id}/drive/items/{item-id}/permissions/{perm-id}
V1 PATCH /users/{user-id}/drive/items/{item-id}/permissions/{perm-id}

Resources

Permission

Property Type Description
expirationDateTime DateTimeOffset A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there is no expiration set for this permission. Optional.
id String The unique identifier of the permission among all permissions on the item. Read-only.
hasPassword Boolean Indicates whether the password is set for this permission. This property only appears in the response. Optional. Read-only. For OneDrive Personal only..
grantedTo (deprecated) IdentitySet For user type permissions, the details of the users and applications for this permission. Read-only.
grantedToIdentities (deprecated) Collection(IdentitySet) For type permissions, the details of the users to whom permission was granted. Read-only.
grantedToIdentitiesV2 Collection([SharePointIdentitySet][]) For link type permissions, the details of the users to whom permission was granted. Read-only.
grantedToV2 [SharePointIdentitySet][] For user type permissions, the details of the users and applications for this permission. Read-only.
inheritedFrom ItemReference Provides a reference to the ancestor of the current permission, if it is inherited from an ancestor. Read-only.
invitation [SharingInvitation][] Details of any associated sharing invitation for this permission. Read-only.
link [SharingLink][] Provides the link details of the current permission, if it is a link type permissions. Read-only.
roles Collection of String The type of permission, for example, read. See below for the full list of roles. Read-only.
shareId String A unique token that can be used to access this shared item via the shares API. Read-only.
In This Article
Back to top Created by merill | Submit feedback