We are announcing the phased rollout of an update to remove the grantedTo and grantedToIdentities properties from the Permission resource type in Microsoft Graph. After a four-year notice of deprecation, we are now proceeding with the removal of these properties from the service.
Action Required:
Update your applications to reference the grantedToV2 and grantedToIdentitiesV2 permissions when using any of the following API calls for SharePoint and OneDrive:
- GET {resource path}/permissions
- GET {resource path}/permissions/permission-id
- PATCH {resource path}/permissions/permission-id
- POST {resource path}/permissions
We understand that changes can be disruptive and require updates to your applications. However, this update will reduce confusion by removing redundant properties from the resource.
Hi,
We get item permission by get driveItem api with “$expand=permissions”. (https://learn.microsoft.com/en-us/graph/api/driveitem-get?view=graph-rest-1.0&tabs=http)
However, this api only return grantedTo (has no grantedToV2).
Is this expected behavior?
Will grantedToV2 be supported in this api in the future?
Thanks.
Hi,
It doesn’t seem like grantedToIdentitiesV2 works for either site level permissions or driveitem permissions. at least not with an Application identity.
However grantedToV2 seems to work on both site level and driveitems.
Is this expected behavior?
Hi,
We have been using this Graph rest api to create application permission to our SharePoint sites(https://learn.microsoft.com/en-us/graph/api/site-post-permissions?view=graph-rest-1.0&tabs=http). This morning I receive a deprecation notice: https://devblogs.microsoft.com/microsoft365dev/removal-of-deprecated-sharepoint-onedrive-permission-resource-properties/. Basically, changing the reference from grantToIdentities to grantToIdentitiesV2. I went ahead and tried but I'm getting a 400 bad request with no details.
Here is my payload:
<code>
My question is:
1. How can I properly use this new grantedToIdentitiesV2 property?
2. Anyone knows what is the deprecation date of the grantedToIdentities property?
Appreciate any pointers!
Thanks,