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

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
Super User
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
Super User
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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,202)