The client 'abc' with object id 'XXXXXXXXXXXXXXXXXX' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourceGroups/read' over scope '/subscriptions/'XXXXXXXXXXXXXXXXXX'/resourceGroups/XXXX-014-aks-rg' or the scope is in

Deepanshu katara 5,370 Reputation points
2024-05-06T11:19:20.9033333+00:00

I got into a situation where I need to access AKS cluster ,so I have added below required permission by adding myself to the group and given necessary permission but getting below error

ERROR :The client 'abc' with object id 'XXXXXXXXXXXXXXXXXX' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourceGroups/read' over scope '/subscriptions/'XXXXXXXXXXXXXXXXXX'/resourceGroups/XXXX-014-aks-rg' or the scope is inis invalid. If access was recently granted, please refresh your credential

Please check below Images

Error Image

User's image

Permission Image

User's image

Action Already tried:

  1. Clear the browser cache , sign out an sign in
  2. Check with other members of the group they can access with no errors

Please help

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,883 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,772 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Babafemi Bulugbe 1,955 Reputation points MVP
    2024-05-06T12:07:42.6066667+00:00

    Hello Deepanshu katara,

    Trust you are doing great.

    I noticed from the error you posted that you do not have the permission needed.

    You have been assigned a role on the AKS but not on the resource group where the AKS is.

    You need a read permission on the Resource group (corp-dev-014) where the AKS is.

    User's image

    Let me know if this helps.

    Babafemi