web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Toggle 'Sync Hub Permi...
Power Automate
Unanswered

Toggle 'Sync Hub Permissions to this site' Setting automatically

(0) ShareShare
ReportReport
Posted on by 7
I am building a flow to create teams from a template Project Team when a user puts in a request. The template team contains standard, private, and shared channels. The issue I have is that the main parent Sharepoint site can easily be joined to the Projects hub, but the shared and private channels do not do that automatically despite being subsites of the parent which is. To do so, I need to manually toggle "Sync hub permissions to this site" within each channel's Sharepoint site permissions. Without doing this, relevant hub visitors aren't able to get to key information contained within those channel sites. Is there a step where I can force the inherit hub permissions to be toggled on? Maybe there's a way to do this when creating the channel by altering the Http request? Any help appreciated!
Categories:
I have the same question (0)
  • Suggested answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    pls try the following:
     
    The Sync Hub Permissions action corresponds to a SharePoint REST API endpoint:
    • Endpoint: /sites/{site-id}/joinHubSite
    • Method: POST
    • {
        "forcePushToChildren": true
      }
       
    create in Power Automate:
    Use a trigger like "When a request is created" or "Manually trigger a flow."
    Use the "Create a Team from Template" action or a Graph API HTTP request to create the team and its channels.
    After creating the channels, use the "Get SharePoint Site URL" action or Graph API to retrieve the SharePoint site URL for each private and shared channel.
    Add an HTTP action to the flow
    -------------------make sure the folowing:
    • Ensure the user account running the flow has SharePoint Admin permissions.
    • Your flow should already create teams and channels using the relevant Graph API endpoints.
    • Have the IDs or URLs of the SharePoint sites associated with the private and shared channels.
     
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard