Ramsai
Ramsai11mo ago

Invite a new member to an organisation

We are planning to invite an user from our application. I see that there is an endpoint to invite an already registered user to an organisation, https://zitadel.com/docs/apis/resources/user_service_v2/user-service-verify-invite-code. Could you please help me to find out an endpoint , where we can send an invitation code to an unregistered user, who obviously does not have an userID.
5 Replies
Ramsai
RamsaiOP11mo ago
Do we have endpoints other than /management/v1/orgs/me/members
Raccine
Raccine11mo ago
Hey @Ramsai! :gigipixel: You can manually add/invite users by following the instructions outlined here: https://zitadel.com/docs/guides/integrate/onboarding/end-users#manually-addinvite-users
ZITADEL Docs
End Users have three different possibilities on how to login with ZITADEL.
Ramsai
RamsaiOP11mo ago
Thanks for the reply @Raccine . We need an endpoint to include invitation of users in our application rather than manually adding it in the console.
fabienne
fabienne11mo ago
you can create a user through the https://zitadel.com/docs/apis/resources/user_service_v2/user-service-add-human-user if you put isverified to false in the email, and don't send the sendCode or reuturnCode object, you can send a createiinvitecode after wards: https://zitadel.com/docs/apis/resources/user_service_v2/user-service-create-invite-code
ZITADEL Docs
Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned.
ZITADEL Docs
Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods.
Pallab
Pallab4mo ago
Been trying this with the new create user API https://zitadel.com/docs/apis/resources/user_service_v2/user-service-create-user and while I have tried setting the email as one of not verified or returned the code, the create invite code still returns User is initialized error. Is this not supported any longer? Note: I am using the Go SDK v3.6.1 to perform these operations.
ZITADEL Docs
Create a new human or machine user in the specified organization.

Did you find this page helpful?