Add eligible assignment for Azure resources in PIM

AH 0 Reputation points
2024-04-26T21:19:38.71+00:00

We have implemented PIM to assign Microsoft Entra roles and PIM is working normally. To extend PIM for Azure resources, I'm trying to add eligible assignment for Azure resources (Owner of a subscription) in PIM but hit an error message:

Role assignment failed for member 'GroupName' to role 'Owner' in 'Subscription'

The requestor object-ID-of-my-azure-account does not have permissions for this request. Please use $filter=asTarget() to filter on the requestor's assignments.

Any idea to resolve this issue?

My account is the subscription Owner; and also has Global Administrator role in Microsoft Entra ID.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,582 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 5,145 Reputation points
    2024-04-27T04:38:15.5566667+00:00

    Hi AH,

    I think when activating the role one must pass the user's own object Id, rather than that of an AAD group the user may belong to.

    So at this step (below snap) if you are giving your group name/id then please change it to your individual object ID and try User's image

    Please check this for more ref https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-resource-roles-assign-roles

    Kindly accept answer if it helps , Thanks