cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mgodby
Post Patron
Post Patron

Is there a way to turn an owner of a Team into a member?

Hello. The reason I want to do this is because I'm facing an issue where removing a user from a Team will work in flow if they are a member but not if they're an owner. I used the "remove member from group" action to remove the user from the AAD group.

picture1.png

This will work if they're only a member. They will lose access to the Team and they will be removed from the list of members and guests. But if they're an owner, nothing changes. Even though they are removed from the AAD group. And if I go into teams and change that owner into a member, they are automatically removed.

Is there a way to turn an owner into a member for a Teams Team through power automate? Is this possible? Thank you.


4 REPLIES 4
rsaikrishna
Super User
Super User

@Mgodby 

 

Use MS Graph API for Teams as show below:

rsaikrishna_0-1622682492374.png

 

You may need to make two API calls for following:

a. Remove Owner

b. Add member

 

I hope this will help you. Please give a try and post your questions here.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

Thank you for the reply. Unfortunately, graph api is something we are trying to avoid using. Is there another way to turn the owner to a member in Flow? 

Hi @Mgodby 

 

The Teams Action, albeit in preview, "Add a member to a team" will allow you to do this, even if the user is already a member.  You do not need to remove and re-add.  The Azure and Groups Actions do not have an option to select owner/member levels, they will be members by default.

 

DamoBird365_0-1622698670101.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

Thank you for the reply. I tried using this action but it seems to only work for turning a member into an owner and not the other way around. When I use this action and set the should be owner value to No, the Owner is not demoted to a Member, they remain the Owner. 

This is how I use the action. Unfortunately, the Owner remains the Owner so I still can't remove them from the Team.

removeasowner.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,472)