Showing results for 
Search instead for 
Did you mean: 
New Member

Change external sharing on / off via MS flow on Sharepoint online site

Is it possible to change a sharepoint online sites properties just via MS flow, i want to effectively change the sharing capability based on a parameter, i supply to the flow.

Effectively I want replicate the   SPO-SetSite command and the param -SharingCapability that you can do in powershell


I wanted to avoid using azure function/ powershell if posible and do entirely in flow, I am looking for the simplest and quickest solution, it needs to be automated via flow.


any help appreciated

Dual Super User II
Dual Super User II

Hi @Brad_H 


You can try invoking the SharePoint Rest API using the Send an HTTP Request to SharePoint action. You can see more details on permissions here:


Hope this Helps!


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (20,860)