Adding userGrants in Post Creation trigger (external auth flow) fails for Entra
Hi, I'm evaluating Zitadel for SSO and identity brokering. I'm following this guide to set up role authorizations based on information in claims from Entra Id.
In a nutshell I would like to assign roles to users created by logging in through SSO via MS Entra. After setting up SSO with Entra and verifying that it works I followed the guide linked above but got "Errors.UserGrant.NoPermissionForProject (EVENT-Shu7e)" on UI and following log:
This message doesn't make sense to me as setting up authorization for this project is exactly what I'm trying to do in the action. Could you point me to some specific troubleshooting steps for this error? The user gets created but is not assigned to the project with any role. I'm running self hosted v4.0.2.