Using Console
Using CLI
<assignee-id>
with the ID or name of the user or role you want to remove the assignment from. You can find the ID or name in the output of the previous command.
Using Python
pip install azure-identity
pip install azure-mgmt-authorization
<subscription_id>
with the ID of your Azure subscription.<scope>
with the appropriate scope (e.g., ‘/subscriptions/<subscription_id>
’).
permissions
property should include the necessary privileges.role_assignments
list based on the user or role’s principal ID or display name.
<scope>
with the appropriate scope (e.g., /subscriptions/<subscription_id>
) and <role_assignment_id>
with the ID of the role assignment to be deleted.