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

Remove users from a single Azure Security Group

Hello,

 

I try to build a setup as follows:

 

  1. Schedule flow to run every Sunday
  2. Flow remove all members from a single Azure Security Group

 

Step 1 done, step 2 stuck to build a dynamic query, so flow remove all members and not only one,

Any ideas on how to build this up?

 

lightupdifire_0-1594369961976.png

 

Works fine if use group object ID and single user object ID, but I need to remove all users from this group...

1 ACCEPTED SOLUTION

Accepted Solutions
Johnnyg
Microsoft
Microsoft

Hello lightupdifire,
You could use 'Get group Members' action to list all member id and use apply to each to remove all these members as your mentioned. Thanks.

Johnnyg_0-1594540330349.png

 

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

View solution in original post

2 REPLIES 2
Johnnyg
Microsoft
Microsoft

Hello lightupdifire,
You could use 'Get group Members' action to list all member id and use apply to each to remove all these members as your mentioned. Thanks.

Johnnyg_0-1594540330349.png

 

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

View solution in original post

Hello Johnny,

 

Thank you very much! Worked well.

 

Just sharing a small idea:

 

It is used for a Students that hired every month in customer company:

 

1. Build an app with Self-Service and with a link to https://portal.office.com/account/#installs

2. From MyApps, a user (student) can add a suggested app;

3. When user use Self-Service, added app owner (license/project manager) approve app request;

4. User added to Azure Security group to which assigned MS License;

5. Every last day of the month, flow run and remove users from a group that free up licenses for the next students if any;

 

Best regards,

Light

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (46,281)