cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
skarthanal
Helper II
Helper II

Change a SharePoint Site Collection's Property via Power Automate

I am trying to figure out a way to change a SharePoint Site Collection's sharing property as shown in the screenshot.  I want to change it from the default (Only People in your organization) to (People with existing access).  I can do this via Powershell but wanted to know if it is possible via Power Automate?

 

 

skarthanal_0-1606163535149.png

 

3 REPLIES 3
Expiscornovus
Dual Super User
Dual Super User

Hi @skarthanal,

 

As far as I am aware setting it is not possible to set the default link type setting for an individual site collection via the REST API.

 

Invoking a site design with a site script for external sharing settings would be possible via the REST API and a HTTP action:

https://rezadorrani.com/index.php/2019/01/14/invoking-unlimited-actions-with-site-design-tasks-and-m...

 

addsitedesigntask_restapi.png

Thank you for replying @Expiscornovus.  I followed the links but i am not fully understanding how to achieve what i need. My PS script is below:

Connect-SPOService -Url "web url"

Set-SPOSite -Identity "web url" -DefaultLinkToExistingAccess 1

 

When i create the JSON body how do i verify that the property is "DefaultLinkToExistingAccess"?

Expiscornovus
Dual Super User
Dual Super User

@skarthanal , sorry, I wasn't entirely clear in my previous post. I basically said it was not possible (as far as I am aware).

 

I only showed how you could set the main sharing settings via a flow. But example doesn't allow you to set the value of the defaultlinktoexistingaccess attribute.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,150)