Restoring Access After Removing Account from IAM

Gerdmate Team 0 Reputation points
2025-05-05T14:20:30.7233333+00:00

An account was mistakenly removed from Access control (IAM), resulting in the server being unreachable. What steps can be taken to restore access to the server?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,841 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mounika Reddy Anumandla 5,300 Reputation points Microsoft External Staff Moderator
    2025-05-12T11:17:51.97+00:00

    Hi Gerdmate Team,

    The client '<client>' with object id '<objectId>' does not have authorization to perform action '<action>' over scope '<scope>' or the scope is invalid. means the user doesn't have permissions to the resource at the selected scope.

    To Restore Access: If another Owner or User Access Administrator account exists for the subscription:

    1. Log in with that account.
    2. Go to: Azure Portal > Subscriptions > <Your Subscription> > Access control (IAM)
    3. Add the removed user back with:
      • Role: Owner or Contributor
      • Scope: Subscription or specific resource group
    4. If you're trying to access a VM:

    https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal?tabs=current

    https://learn.microsoft.com/en-us/azure/role-based-access-control/troubleshooting?tabs=bicep#symptom---guest-user-gets-authorization-failed

    Similar thread: https://learn.microsoft.com/en-us/answers/questions/1193583/azure-subscription-the-client-live-com-with-object

    Hope it helps!

    Let me know if you have any further queries!

    0 comments No comments

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.