microsoft / Partner-Center-PowerShell

PowerShell module for managing Partner Center resources.
https://docs.microsoft.com/powershell/partnercenter/
MIT License
131 stars 60 forks source link

Unable to enable Restricted View permission using PowerShell in SharePoint online #374

Open hemaraj05 opened 3 years ago

hemaraj05 commented 3 years ago

Hi Everyone,

We are trying to automate the below requirement using PowerShell.

1.SharePoint online Team site needs to be created – Working Fine 2.Above created Team site will automatically change the External sharing under SharePoint polices instead of default option (Only people in your organization) - Working Fine 3.Guest users will be added to Azure Active directory - Working Fine 4.Guest users will be added to above created team site under Site Visitors group with View only permission- Working Fine 5.Similarly, I’m unable to enable the Restricted View for a Document library via Power Shell whereas it works well, if enabled manually - Concern

Attached the PowerShell script for your kind reference. Do let me know how do I enable the Restricted view using PowerShell for the Document library. Suggest any solution ASAP?

Restrictedview- powershell.txt