I have registered an Azure AD Application with an App role
called read
.
User Principal
If a user principal is assigned to the app role read
and the groups
claim (emit_as_roles
enabled) is added in the Azure AD App, only the AAD security groups show up in the user's token (roles
claim) but not the app roles the user has been assigned to.
This is mentioned in the documentation:
Service Principal
Apparently, the same seems to apply for Service Principals, even though
Service principals won't have group optional claims emitted in the JWT.
As expected, disabling (default) the emit_as_roles
setting in the token configuration allows me to see the information read
in the roles
claim again.
I assume that this is the expected behaviour for service principals in Azure AD. However, the documentation only mentions this for users but not for service principals.