Created
October 25, 2019 08:58
-
-
Save OlafD/4054a4a712346d7cac85ed33f75ae3ab to your computer and use it in GitHub Desktop.
For multilingual environments, a short version to get the name of the reader role in SharePoint Online. PowerShell PnP is needed for this approach.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$web = Get-PnPWeb -Includes RoleDefinitions | |
$readerRole = $roleDefinitions.GetByType([Microsoft.SharePoint.Client.RoleType]::Reader) | |
(Get-PnPContext).Load($readerRole) | |
Invoke-PnPQuery | |
$readerRole.Name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment