A cloud-based identity and access management service for securing user authentication and resource access
What is the security risk of granting AppRoleAssignments.ReadWrite.All to an automation app that creates groups inside Administrative Units and adding that groups to Enterprise application?
I have an internal automation application that performs the following tasks in Entra ID:
- Creates Azure AD groups inside specific Administrative Units
Makes selected users PIM-eligible for those newly created groups
Assigns the newly created groups to an Enterprise Application (used as an external IdP for AWS)
To enable these operations, the app registration currently has the AppRoleAssignments.ReadWrite.All Graph API permission.
I understand this is a very high-privilege permission, and I want to validate whether my design has unnecessary security exposure.
My questions are:
- What is the worst-case impact if
AppRoleAssignments.ReadWrite.Allis compromised or misused?
Is there a least-privilege alternative to using AppRoleAssignments.ReadWrite.All for assigning newly created groups to an Enterprise App?
Are there recommended best practices for securing automation apps that manage PIM-eligible groups and application assignments?
Any guidance or official Microsoft reference would be greatly appreciated.