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

Flow Action to remove a member from a MS Teams team

Hello,

 

I have created a Flow to add a member to a specific MS Teams team (which is great!) but I can't seem to find an action to then remove a member should they be demobilised on the associated project/team. 

 

Is anyone aware of a solution/workaround for this as it is obviously a critical process in managing a team/project. Does anyone know if MS is likely to release an 'action' for this soon?

 

Note, I have been able to add an action to remove a member from the O365 group associated with the MS Teams but unfortunately that does not appear to then remove them from the Teams itself.

Any suggestions would be greatly appreciated. 

Thanks

6 REPLIES 6
RyanSpooner
Regular Visitor

I need this too.  I can't find an action to do this in my flow.  I've written a flow to create a Team, and add the user who requested it to the team as an owner.  This works great, however because I created the flow and it's my account connected to Teams, it automatically adds me as an owner on the Team too.

 

I was hoping to find a remove member action I could run at the end of the flow to remove me from the created Team, but one doesn't seem to exist.

 

Any ETA on when this might be added to the action list for Teams, or any possible workarounds that doesn't involve me manually leaving each Team that gets created please?

 

Thanks

narcisradoi
Regular Visitor

To resolve this -

As Teams and Groups in AAD are the same - we can run an HTTP request to remove an AAD ID from a Group

narcisradoi_0-1613740156997.png

 

Can you explain this better ? What is in the body ? Where can I get this URL ?

@RaphaelfSalomaoif it helps -

all the requests are in the Graph API Explorer - https://developer.microsoft.com/en-us/graph/graph-explorer

If you go to Groups -> Remove member from group you will see the URL and format

you can also run tests straight from there

 

From what I can tell, there is no requirement for anything to go in the body as the information is in the URL (group ID to remove from and member ID that needs removing)  https://graph.microsoft.com/v1.0/groups/{group-id}/members/{member-id}/$ref

 

 

 

I tried Graph but seems that I need a permission that I don't have, and I don't know how to ask these permissions to the admin; Do you know how to grant those permissions to a normal user ?

narcisradoi
Regular Visitor

You would need an HTTP premium license and API access to run the flow anyway so you would need to ask your admin to allow you to do this.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,375)