Ramsai
Ramsai•11mo ago

User registration with organisation

Hi guys, while user registration we wanted to give the new user an separate organisation in custom UI. I tried to attach https://$CUSTOM-DOMAIN/v2/organizations this API to the users/human API but facing the error "message": "membership not found (AUTHZ-cdgFk)". Could you please help me to find out an API through which we can create an organisation at the time of user registration or is there any other work around I need to try? Thank you
3 Replies
Raccine
Raccine•11mo ago
Hey @Ramsai! :gigipixel: Here's a guide that might help you solve this issue: https://zitadel.com/docs/guides/integrate/onboarding/b2b#automated-onboarding-for-your-customers
ZITADEL Docs
In this guide we will explain how you can create and set up new organizations in ZITADEL to help you with your onboarding flows.
Ramsai
RamsaiOP•11mo ago
@Raccine , thanks for the reply. I see that the above endpoint is for the default UI. We are using custom UI and not the default one. I tried to attach https://$custom-domain/v2/organizations this API to the "users/human API" but facing the error "message": "membership not found (AUTHZ-cdgFk)". Could you please help me to find out an API through which we can create an organisation at the time of user registration or is there any other work around I need to try? Hi @Raccine , any update on this 🙂
Raccine
Raccine•11mo ago
Hi @Ramsai? What service account or user are you using to create the organization? Can you check to ensure that user has enough permissions to create organizations?

Did you find this page helpful?