Is it possible to remove the User Access Administrator role from a subscription?

Asier-5655 0 Reputation points
2023-09-14T14:57:31.7033333+00:00

Hello,

I have several subscriptions in my Tenant and I would like to make one of them completely private.

Now I have 2 users with User Access Administrator role and I would like to have a specific subscription without them.

Would it be possible?

I am trying to get the list of subscription roles but I am not getting any users with this command:

Get-AzRoleAssignment | where {$_.RoleDefinitionName -eq "User Access Administrator" -and $_.Scope -eq "/subscriptions/{subscription-id}/"}

Is it possible to do what I want?

Thanks in advance.

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
976 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.