Obtaining the User List of an Azure Resource Group Using Python

I’m the owner of an Azure resource group and I need to manage it. To do this, I need to keep track of the various users who have roles in this resource group, and delete them if they are no longer part of my organization. I’d like to automate this action with python.

How can I get the name and e-mail address of the various users in my resource group?

How can I then delete them directly with python too?

Leave a Comment