cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate I
Advocate I

Automate Site Creation, Add Owners and Admins

Overall Goal:

✔️= Already accomplished | ⚠️ = Somewhat accomplished | ✖️ = Need assistance with

  • Use a list for users to request a site ✔️
  • When site is approved a site is created ✔️
  • Site is joined to the hub ✔️
  • Need to add multiple owners to every site created ⚠️
  • Need to add admins to every site created ✖️

"Send Site Permissions" Flow Breakdown:

Here, in the last HTTP request, I need to figure out a way to add multiple users at once.

sendpermissions.JPG

Body of request:

 

{"__metadata":{"type":"SP.User"},"LoginName":"i:0#.f|membership|user@contoso.com"}

 


 

"Create a Site" HTTP Request

Ideally, I'd like to add the multiple owners in the HTTP Request below, rather than using a separate flow (above).

HTTP2_LI.jpg

 

Body of request:

{
  "request": {
    "Title": "@{triggerOutputs()?['body/Title']}",
    "Url":"https://contoso.sharepoint.com/sites/@{outputs('Update_Alias')?['body/OData__x0077_y81']}",
    "Lcid": 1033,
    "ShareByEmailEnabled":false,
    "Classification":"Classification Words",
    "Description":"@{triggerOutputs()?['body/pejx']}",
    "WebTemplate":"STS#3",
    "Owner":"user@contoso.com"
}
}

Adding Admins to Each Site Created

I haven't been able to determine a way of doing this. I do have the necessary permissions to conduct this, however the how I'm unsure of. Is there a way to add it into the site creation request? Or perhaps setup a different flow to do it?

 

Any assistance is appreciated!

0 REPLIES 0

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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!

Top Solution Authors
Users online (7,793)