What parameter can I use to get all Dynamic groups in MgGraph?

Question

This one is utterly doing my head in and I just can’t find what to use!

I have a script that removes a user from all Azure groups that they’re part of. However, to clean up the script output I want it to ignore any Dynamic groups, since trying to remove those will fail.

But I cannot for the life of me find a way in the MgGraph or AzureAD modules to actually search/filter or in any way find which groups are Dynamic.

Posted Aug 15, 2024, 7:41 AM UTC

410
Loading comments…