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 / Add Multiple users to ...
Power Automate
Unanswered

Add Multiple users to a newly created SharePoint Site using a list

(0) ShareShare
ReportReport
Posted on by

Hi I have created a flow, which generates a new SharePoint site using information from a List.

 

The List contains Two columns named Owner1 and Owner2.

 

I am able to add Owner1 to my flow as the SharePoint owner, however I am unable to add a second Owner or another member to the site once its generated.

 

Can anybody help with the syntax to add a second owner or add Owner2 as a member to a site using my flow?

 

Ideally I'd like Owner2 to be added as a Member rather an Owner

 

Capture.PNG

Categories:
I have the same question (0)
  • Gristy Profile Picture
    2,429 on at

    You could use REST API to some references here:

     

    https://collab365.com/sharepoint-item-permissions-using-flow-part-1/

     

    I think the Owners group on the sharepoint sites usually have the same ID every time when a new site is created.

  • Verified answer
    Ramiz Profile Picture
    245 on at

    Hi @Anonymous ,
    You can add the other user in members group using following.

    Ramiz_0-1625558594371.png

     

    Ramiz_1-1625558667882.png

     

    Ramiz_3-1625558813439.png


    User Email is the email of the person you want to add in the group.

    Here is the JSON scehma.


     

    {
     "type": "object",
     "properties": {
     "d": {
     "type": "object",
     "properties": {
     "__metadata": {
     "type": "object",
     "properties": {
     "id": {
     "type": "string"
     },
     "uri": {
     "type": "string"
     },
     "type": {
     "type": "string"
     }
     }
     },
     "Owner": {
     "type": "object",
     "properties": {
     "__deferred": {
     "type": "object",
     "properties": {
     "uri": {
     "type": "string"
     }
     }
     }
     }
     },
     "Users": {
     "type": "object",
     "properties": {
     "__deferred": {
     "type": "object",
     "properties": {
     "uri": {
     "type": "string"
     }
     }
     }
     }
     },
     "Id": {
     "type": "integer"
     },
     "IsHiddenInUI": {
     "type": "boolean"
     },
     "LoginName": {
     "type": "string"
     },
     "Title": {
     "type": "string"
     },
     "PrincipalType": {
     "type": "integer"
     },
     "AllowMembersEditMembership": {
     "type": "boolean"
     },
     "AllowRequestToJoinLeave": {
     "type": "boolean"
     },
     "AutoAcceptRequestToJoinLeave": {
     "type": "boolean"
     },
     "Description": {},
     "OnlyAllowMembersViewMembership": {
     "type": "boolean"
     },
     "OwnerTitle": {
     "type": "string"
     },
     "RequestToJoinLeaveEmailSetting": {
     "type": "string"
     }
     }
     }
     }
    }​

     

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Thanks for you help I managed to solve the problem using the following steps:

    Capture1.JPG

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard