How to Assign Application Admin to Specific Enterprise Apps

  • Post author:
  • Post category:Microsoft Entra
  • Post last modified:
  • Reading time:4 mins read
  • Post published:

The Application Administrator role in Microsoft Entra is a highly privileged role that is often assigning without consideration of the impact it has to the risk is poses. While it is quite easy to give someone full Application Administrator permissions if they ask for it, instead, you should lock down admin rights to only the specific Entra apps your team, or that specific person actually manages. In this blog I will explore what this is important and how to restrict application administration to specific applications only.

The Risks of the General Application Administrator Role

By default, assigning the built-in Application Administrator role grants privileges across all App Registrations and Enterprise Applications in your tenant. Users with this role can create, update and manage all enterprise applications, application registrations and application proxy settings across your entire tenant.

Obviously, this broad access introduces a significant risk. If an Application Administrator’s account is compromised, attackers can modify single sign-on (SSO) settings, hijack application traffic, or turn existing applications malicious to access sensitive company data. For example, they could update a commonly used application’s redirect URL to a malicious phishing page to harvest credentials or access tokens, or they could add client secrets to and app registration to exfiltrate data or further laterally move within your tenant.

To follow the principle of least privilege, you must limit these rights by creating create custom roles and assigning them only to the applications they need to manage, for the settings they need to modify.

Licensing requirements

To create a custom Entra role you need a minimum of Microsoft Entra P1 in your tenant. However, to create a scoped assignment for your custom role to only specific directory resources (in this case, application), you need Microsoft Entra P2 in your tenant.

How to Assign Custom Roles to Specific Enterprise Apps

A custom role scoped to only specific applications will ensure you are applying the principal of least privilege while enabling privileged users to modify only the settings they need to, for the application they need to. Follow the steps defined below to create a custom role and scope it to only specific users and resources.

Firstly, create a new custom role in Microsoft Entra ID by following these steps:

  1. Log in to the Entra admin Center.
  2. Expand Entra ID and select Roles & Admins.
  3. Click New Custom Role.
  4. Enter a Name and Description, then click Next.
  5. Define the permissions you which for the role to have. I have chosen the permission to update service principal role assignments.
  6. On the final page, click Create.

Then, follow these steps to create an assignment on your custom role which is scoped to specific applications:

  1. Open your new role from the All roles list.
  2. On Assignments, click Add assignments.
  3. On Scope type, select Application (App registration), or Service Principal (Enterprise App). As my permission is to update application assignments, I must select Service Principal.
  4. Under Selected scope, select your Enterprise Application.
  5. Then select the member you wish to assign the role to from the members list.
  6. Click Next, choose the assignment type settings and click Assign.

Validating the scoped Application Administrator access

In my scenario, I have assigned my demoaccount user to the DemoApp Admin custom role in Microsoft Entra ID, scoped only to demoapp1 with the permission to update app assignments only.

As you can see from the image below, the user is enable to modify assignments on the demoapp1 Enterprise Application in Microsoft Entra.

custom scoped application admin role
custom scoped application admin role

But, as expected, the user rightfully cannot make any assignment modifications to applications which have not been included within scope of the custom role assignment.

custom scoped application admin restriction
custom scoped application admin restriction

Summary

Default Application Administrator privileges are often too broad, which adds significant risk to your tenant. By implementing custom roles and scoped assignments, you can apply the principle of least privilege to your Entra ID environment. This approach ensures administrators only manage specific resources, effectively reducing your attack surface and protecting sensitive data from potential tenant-wide compromise.

Daniel Bradley

Daniel Bradley is a UK-based technical architect and Microsoft MVP in Security. He specialises in Microsoft Entra, Intune, and Microsoft Graph PowerShell and is the author of Microsoft Graph PowerShell for Administrators. He writes and edits Our Cloud Network using experience gained from working with Microsoft cloud environments.

Leave a Reply