cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Githendra23
Helper III
Helper III

How to remove all members of a 365 group using power automate?

Hi everyone,

 

I'm looking for assistance with Power Automate.

I'm attempting to create a flow that would remove all members (if any) of any 365 group the admin chooses.

I can't seem to find a way to get the id of a group using power automate.

 

Is there a way to get this done ?

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @Githendra23,

Could you please tell me if you have the unique group name in your organization?

 

Generally, there is no OOTB action for you to get the group id but the graph.

https://graph.microsoft.com/v1.0/groups/?$filter=displayName+eq+'[Group Name]'

 

Best Regards,
Qi

View solution in original post

4 REPLIES 4
v-qiaqi-msft
Community Support
Community Support

Hi @Githendra23,

Could you please tell me if you have the unique group name in your organization?

 

Generally, there is no OOTB action for you to get the group id but the graph.

https://graph.microsoft.com/v1.0/groups/?$filter=displayName+eq+'[Group Name]'

 

Best Regards,
Qi

Hi @v-qiaqi-msft,

 

I've created a 365 group called "Dataroom - test - Visiteurs".

If I understand correctly, I have to create an http request right? I'm sorry I'm new to power automate.

Hi @Githendra23,

Yes, you should create an http request.

Here is a similar thread for your reference:

https://powerusers.microsoft.com/t5/Building-Flows/Can-you-get-a-group-ID-from-a-Group-display-name/...

 

Best Regards,
Qi

Hi @v-qiaqi-msft,

 

Thank you so much ! It worked. I was able to get the id of a group.

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,685)