Has anyone ever done any work with limiting access to SharePoint Online through Conditional Access? I need some help!


Essentially I am trying to limit access to a specific SharePoint Online site by requiring that you can only view this site providing the machine you are using is Hybrid Domain joined.. I have been following this document

[https://docs.microsoft.com/en-us/sharepoint/control-access-from-unmanaged-devices](https://docs.microsoft.com/en-us/sharepoint/control-access-from-unmanaged-devices)

The section I am following is:

**Block or limit access to a specific SharePoint site collection or OneDrive**

​

I am getting errors in PowerShell relating to paramater not found and I believe this is because I am not putting the correct info in the command:

​

**Example syntax:**

Set-SPOSite -Identity https://<SharePoint online URL>/sites/<name of site collection or OneDrive account> -ConditionalAccessPolicy AllowLimitedAccess

&#x200B;

**What I’m putting in:**

Set-SPOSite -Identity [https://domain.sharepoint.com/subsitename/](https://domain.sharepoint.com/subsitename/) https://domain.sharepoint.com -ConditionalAccessPolicy AllowLimitedAccess

I believe the problem is I am simply typing in the wrong info but I am not sure… I specify the URL of the site I want to limit and then specify the name of the site collection which I can only assume is the URL given to me in the SPO admin center.



View Reddit by YoungNFresh69View Source

One thought on “Has anyone ever done any work with limiting access to SharePoint Online through Conditional Access? I need some help!

Leave a Reply

Your email address will not be published. Required fields are marked *