1

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.

2
  • You want to add him on site only or library/item? Commented Jan 31, 2019 at 7:55
  • I want to add him on site only. Commented Jan 31, 2019 at 8:14

1 Answer 1

1

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

Set-PnPWebPermission -Url https://company.sp.com/sites/site1 -User '[email protected]' -AddRole 'Read'

Documentation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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