Share via

Error granting reader role on an Enterprise policy

Ifechukwu Michaels 0 Reputation points
2026-04-20T02:24:29.67+00:00

Following https://learn.microsoft.com/en-us/power-apps/maker/data-platform/azure-synapse-link-msi, someone with User Access Administrator permission is running this Powershell New-AzRoleAssignment -ObjectId

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-20T02:24:41.3166667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The Forbidden response from New-AzRoleAssignment means the caller does not have sufficient permissions on the specified scope (<EP Resource Id>) to create a role assignment, even if the caller has a role like User Access Administrator elsewhere.

    From the documented procedure to grant Reader on an enterprise policy, the key requirement is:

    You must have Microsoft.Authorization/roleAssignments/write permissions, such as User Access Administrator or Owner, to complete this task.

    That permission must be effective at the enterprise policy resource’s scope (or a parent scope). If the user’s User Access Administrator role is only at subscription or resource-group level that does not cover the enterprise policy resource, or is on a different subscription/tenant, the role assignment call at <EP Resource Id> will fail with Forbidden.

    To resolve:

    1. Verify the scope of the caller’s role:
      • Confirm that the identity running New-AzRoleAssignment has User Access Administrator or Owner at:
        • the enterprise policy resource scope (microsoft.powerplatform/enterprisepolicies), or
        • a parent scope (for example, the subscription or resource group that contains the enterprise policy).
    2. Re-check the enterprise policy resource ID:
      • Use Resource Graph Explorer as documented to locate the enterprise policy and copy its id exactly.
      • Ensure that the -Scope parameter is set to that exact id.
    3. Run the documented command from an identity with the required permission at that scope:
         New-AzRoleAssignment -ObjectId <objId> -RoleDefinitionName Reader -Scope <EP Resource Id>
      

    If the same user is already User Access Administrator or Owner at the enterprise policy’s subscription or resource group, the command should succeed once the correct scope is used. If not, an existing Owner/User Access Administrator at that scope must first grant the necessary role.


    References:

    Was this answer helpful?

Your answer

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