How to invite a user to an organization?
This article demonstrates the different options available to invite a user to an organization
If you started with Zitadel before v3, to simplify this process, it's recommended to enable the Feature Flag "Use V2 Api in Console for User creation" in the Default Settings.
- Creating a User via the Console:
- Navigate to the Organization
- Go to: Organization → Users → New
- Configure the User profile
- ✅ Check Send an invitation E-Mail for authentication setup and E-Mail verification.
- User Creation
- An email will automatically be sent to the user to complete initialization.
- Accept the invitation
- The user clicks the link in the email.
- They set a new password.
- Their account is now ready to use.
- Navigate to the Organization
- Creating a user via the API
- Create the user with the following endpoint:
-
Create a User - You can request a code to be sent to the user to validate the email and set a password:
{
"username": "<username>",
"organizationId": "<organization_id>",
"human": {
"profile": {
"givenName": "<name>",
"familyName": "<lastname>",
"nickName": "<nickname>",
"displayName": "<display_name>",
"preferredLanguage": "<lang>",
"gender": "<gender>"
},
"email": {
"email": "<email>",
"sendCode": {}
}
}
}
-
- Create the user with the following endpoint:
-
- As with the console approach, the user will receive an email with a link to create a password and complete registration
Reference: