cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
randomsky
Frequent Visitor

SharePoint Site External Sharing using Power Automate

Is there a way to make a change to this setting for a specific SharePoint site collection:

randomsky_0-1634275836577.png

I would like to change the setting from 'only people in your organisation' to 'new and existing guests'. Can this be done using Power Automate?

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @randomsky,

 

You could use the REST API and use a POST request to your SharePoint Admin Centre address to set the SharingCapability field value to 1.

 

Below is an example of that approach.

Site Address is your admin centre. SiteId is the guid of the site collection where you want to change the settings.

Kudos to Matt_majedi for finding this: https://techcommunity.microsoft.com/t5/power-apps-power-automate/update-site-sharing-capability-with...

 

_api/Microsoft.Online.SharePoint.TenantAdministration.Tenant/Sites('@{variables('SiteId')}')

 

sharingcapability.png

 

View solution in original post

1 REPLY 1
Expiscornovus
Super User
Super User

Hi @randomsky,

 

You could use the REST API and use a POST request to your SharePoint Admin Centre address to set the SharingCapability field value to 1.

 

Below is an example of that approach.

Site Address is your admin centre. SiteId is the guid of the site collection where you want to change the settings.

Kudos to Matt_majedi for finding this: https://techcommunity.microsoft.com/t5/power-apps-power-automate/update-site-sharing-capability-with...

 

_api/Microsoft.Online.SharePoint.TenantAdministration.Tenant/Sites('@{variables('SiteId')}')

 

sharingcapability.png

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,008)