The properties grantedTo and grantedToIdentities will be removed from Microsoft Graph

Microsoft announced that they are removing the properties grantedTo and grantedToIdentities from Microsoft Graph resources.
The properties are included in the SharePoint permissions resource. Both properties have been deprecated for years. A V2 property is available.

Two sections are relevant for the two properties in SharePoint permissions.
grantedTo returns permissions for the Groups section. The alternative property is grantedToV2.

GrantedToV2 as an alternative
GrantedToV2 as an alternative


grantedToIdentities returns shared content with a sharing link. The alternative property is grantedToIdentitiesV2.

grantedToIdentitiesV2 as an alternative
grantedToIdentitiesV2 as an alternative

PowerShell returns the permissions for a file or folder.

PowerShell
$Url = "https://graph.microsoft.com/v1.0/sites/$SiteId/drive/items/$FileId/permissions"
$Result = Invoke-MgRestMethod -Method GET -Uri $Url 
$ItemPermissions = $Result.value
$ItemPermissions


With the change, the red section will be removed, and the alternative V2 property must be used.

grantedTo will be removed, you have to use grantedToV2

Property grantedTo will be removed
Property grantedTo will be removed

grantedToIdentities will be removed, you have to use grantedToIdentitiesV2.
grantedToIdentitiesV2 includes more information than the old grantedToIdentities property.

Property grantedToIdentities will be removed
Property grantedToIdentities will be removed
Share
Avatar photo

Tobias Asböck

Tobias is a Senior System Engineer with around ten years of professional experience with Microsoft 365 products such as SharePoint Online, SharePoint Premium, OneDrive for Business, Teams Collaboration, Entra ID, Information Protection, Universal Print, and Microsoft 365 Licensing. He also has 15+ years of experience planning, administering, and operating SharePoint Server environments. Tobias is a PowerShell Scripter with certifications for Microsoft 365 products. In his spare time, Tobias is busy with updates in the Microsoft 365 world or on the road with his road bike and other sports activities. If you have additional questions, please contact me via LinkedIn or support@topedia.com.

Leave a Reply

Your email address will not be published. Required fields are marked *