cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SlippinJimmy
New Member

Add owner to 365 group

Hi,

I'm automating the process of creating a sharepoint site via flow.

I've got most of the process sorted, but I can't figure out how to add additional owners to the 365 group that's created with the site.

Using the out of the box 'add members' function within the 365 group section in flow, only adds members. How do I add additional owners to the group, please?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @SlippinJimmy,

 

You could use the add owners method of the Graph API in a Send an HTTP request action (Office 365 groups connector) for this.

 

Below is an example.

 

POST https://graph.microsoft.com/v1.0/groups/{id}/owners/$ref
Content-type: application/json

{
  "@odata.id": "https://graph.microsoft.com/v1.0/users/{id}"
}

 

postowners_groupid.png

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


View solution in original post

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @SlippinJimmy,

 

You could use the add owners method of the Graph API in a Send an HTTP request action (Office 365 groups connector) for this.

 

Below is an example.

 

POST https://graph.microsoft.com/v1.0/groups/{id}/owners/$ref
Content-type: application/json

{
  "@odata.id": "https://graph.microsoft.com/v1.0/users/{id}"
}

 

postowners_groupid.png

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Perfect, that did the job. Thanks a lot!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,293)