I use a combination of roles and Identity Groups.
On the role
-
groups_claimisgroups
Create an Identity Group:
-
nameis your desired group name (can match your AzureAD group name or can be something unique) -
typeisexternal
Finally create an Identity Group Alias:
-
canonical_idis the internal ID number of your Identity Group created above -
nameis the group ID in Azure (usually formatted as a UUID) -
mount_accessoris the accessor ID of your Azure JWT auth method mount
If you don’t want to use Identity Secrets you may be able to specify the bound_claims parameter on the role (please note that I have not tested this with AzureAD/OIDC):
-
bound_claimsis a map ofgroup = <azuread_group_id>