-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report: Custom CAF Roles Conflict with Entra ID Role Assignment Conditions #1884
Comments
Hi, transferring to Enterprise-Scale as this currently hosts the definitions |
Hey @matt-FFFFFF, did you mean you want me to open an issue in the Enterprise-Scale repo? Or that you were going to transfer this issue to that repo? Because I don't see it in the ES repo issue's list currently. |
I have already moved the issue 😊 |
@AErmie thanks for raising the issue. Those custom roles are from before my time, @jtracey93 do you have any thoughts? |
Just investigating this and will try to repro. @AErmie can you confirm that the identity trying to make the role assignment of one of these custom role defs had permissions like |
Hey @jtracey93, yes I can confirm that (it's my own account). I have From my testing, if the If we remove the |
Community Note
Versions
terraform: 1.9.7
azure provider: 3.116.0
module: 6.2.0
Description
Describe the bug
Some of the custom Roles (ie.
Subscription-Owner
andApplication-Owners
) conflict with Entra ID's requirement to include role assignment conditions for Privileged Administrator Roles.This is due to these custom roles having the following
notActions
:And because these are "privileged" roles, Entra ID enforces the setting of a condition (any of which require/allow the User to "assign roles"), which conflicts against the custom Role's
notActions
.This produces the following error when attempting to assign either of these roles:
Note
The Role GUID reference corresponds to the
roleDefinition
object, as it's been created in the target environment.Steps to Reproduce
Subscription-Owner
orApplication-Owners
rolesScreenshots
Additional context
By removing the
notActions: "Microsoft.Authorization/*/write"
from the custom Role, this resolved the error, and allowed assigning the role.Request
It would be helpful to understand the original intent of these custom Roles, and if this approach is being maintained or abandoned.
The text was updated successfully, but these errors were encountered: