I am trying to create a powershell script via SharePoint Online Management Shell, where I will provide "Read" permissions to a user.

Most of the articles I read is that we could only add the user as Site Collection Admin or to a group.

But I only wanted to add the user with "Read" permissions.

Any help would be appreciated.

  • You want to add him on site only or library/item? – Zdeněk Vinduška Jan 31 '19 at 7:55
  • I want to add him on site only. – JanJan Capili Jan 31 '19 at 8:14

Install PNP module with Install-Module SharePointPnPPowerShellOnline and use this command:

Set-PnPWebPermission -Url https://company.sp.com/sites/site1 -User 'user@contoso.com' -AddRole 'Read'


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.