Is it possible to limit AppRoleAssignment.ReadWrite.All ?

Arp, Thomas 11 Reputation points
2021-06-14T11:10:41.923+00:00

The Permission AppRoleAssignment.ReadWrite.All allows for "self-elevation", in that it makes it possible to add more permissions to the service principal that has this permission. Also, the SP could potentially create other users and assign this permission to them, making them able to self-elevate as well.

Are there any ways of limiting the assignments to particular groups, service principals and/or resources?

In particular, we wish to automate creation of applications and assign required group memberships to those newly created applications, without worrying that if the credentials for the automation should be leaked, we'll potentially have a giant security hole.

We have tried to limit access through use of Application.ReadWrite.OwnedBy, such that one SP can't mess with the applications created by another.
I understand there's a concept of grant policies and that they might be able to limit when we grant access to the permission, but once we do elevate to AppRoleAssignment.ReadWrite.All, I don't see how it helps.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

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.