Ende der Properties grantedTo und grantedToIdentities in Microsoft Graph

Im Blog hat Microsoft angekündigt sie entfernen die Properties grantedTo und grantedToIdentities aus Microsoft Graph.
Die Properties sind im Endpunkt Permissions für SharePoint Berechtigungen inkludiert. Die beiden Properties sind seit Jahren im Status Deprecated, es steht jeweils V2 bereit.

In SharePoint Berechtigungen sind zwei Abschnitte für die beiden Properties relevant.
grantedTo gibt Berechtigungen für den Abschnitt Gruppen zurück. Das alternative Property ist grantedToV2.

GrantedToV2 als Alternative
GrantedToV2 als Alternative

grantedToIdentities gibt geteilte Inhalte mit einem Freigabelink zurück. Das alternative Property ist grantedToIdentitiesV2.

grantedToIdentitiesV2 als Alternative
grantedToIdentitiesV2 als Alternative

Mit PowerShell werden die Berechtigungen pro Datei oder Ordner ausgewertet.

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

Mit der Änderung fällt jeweils der rote Abschnitt weg, es muss das alternative, neue Property genutzt werden.

grantedTo wird entfernt, nutze grantedToV2.

Property grantedTo wird entfernt
Property grantedTo wird entfernt

grantedToIdentities wird entfernt, nutze grantedToIdentitiesV2.
grantedToIdentitiesV2 inkludiert mehr Informationen als das alte Property grantedToIdentities.

Property grantedToIdentities wird entfernt
Property grantedToIdentities wird entfernt
Share this post:

About the Author

Tobias Asböck

Tobias Asböck

Tobias is a Senior System Engineer with more than 10 years of professional experience with Microsoft 365 products such as SharePoint Online, 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. 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.

No comments yet