Skip to content

Instantly share code, notes, and snippets.

@OlafD
Created October 25, 2019 08:58
Show Gist options
  • Save OlafD/4054a4a712346d7cac85ed33f75ae3ab to your computer and use it in GitHub Desktop.
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.
$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