Skip to main content

Notifications

Community site session details

Community site session details

Session Id : HyNxkqFv8BK9OUwSq7cEJT
Power Automate - Building Flows
Unanswered

Applying custom SharePoint site templates (and automatically associating site Owners through the flows associated)

Like (0) ShareShare
ReportReport
Posted on 26 Feb 2024 05:22:25 by 4

 

We inherited some custom SharePoint Online site templates which were created by a vendor a couple of years ago to apply things like logs, hub association, default web parts, and site owners.

After the site is created you click 'Apply a Site Template' and choose the "From your organization" and there are the templates which utilize flows.

Now flash forward we are trying make some adjustments and cannot seem to figure out how this was accomplished.

Currently one of the templates is adding a group of people as Owners and therefore they are getting all of the notifications for site access. This group no longer wishes to receive these notifications but we cannot find anywhere to untether this process. 

Any idea where/how this might be happening?

We have looked through the actual flow process and do not see it anywhere.

Any insights that you have would be greatly appreciated.

  • Expiscornovus Profile Picture
    31,650 Most Valuable Professional on 27 Feb 2024 at 10:22:42
    Re: Applying custom SharePoint site templates (and automatically associating site Owners through the flows associated)

    Hi @JV2018,

     

    My suggestion would be to use a couple of PowerShell cmdlets to figure this out.

     

    1. Run the Get-SPOSiteDesign cmdlet to figure out which site scripts have been used in the the site template, you can find those in the SiteScriptIds property.

    2. Run a Get-SPOSiteScript for each of those ids to find the script which uses the triggerflow verb (or the addPrincipalToSPGroup verb): https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema#trigger-a-flow

     

    Below is an example how that concept normally works: https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-trigger-flow-tutorial

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard
Loading started
Loading complete