Grant user role upon registration in different organization
Hi! I have a question regarding the automatic granting of a role to a user upon creation.
I am using a self-hosted instance, deployed via helm chart version 9.5.3. The zitadel version is v4.2.0.
I have two organizations. The default organization (ORG1) is granted access to a project in ORG2.
Now when I create a new user in ORG1, I want it, by default, to have the role, 'reader' in the project in ORG2.
Therefore I created an action is per the documentation example https://zitadel.com/docs/apis/actions/code-examples#add-grants-to-users :
This role does of course exist in the project in ORG2. But as I created the action for ORG1, where I want to create the user, I get an error upon creation:
Maybe I am missing something, but is there a way to have users created in ORG1 and grant them a role in the project in ORG2 via an action upon creation?
Thanks in advance
I am using a self-hosted instance, deployed via helm chart version 9.5.3. The zitadel version is v4.2.0.
I have two organizations. The default organization (ORG1) is granted access to a project in ORG2.
Now when I create a new user in ORG1, I want it, by default, to have the role, 'reader' in the project in ORG2.
Therefore I created an action is per the documentation example https://zitadel.com/docs/apis/actions/code-examples#add-grants-to-users :
This role does of course exist in the project in ORG2. But as I created the action for ORG1, where I want to create the user, I get an error upon creation:
Errors.Project.Role.NotFound (COMMAND-mm9F4)Maybe I am missing something, but is there a way to have users created in ORG1 and grant them a role in the project in ORG2 via an action upon creation?
Thanks in advance
Actions are a powerful tool to extend ZITADEL and you might wonder what use cases actions can be used for.
