Org id is not set when creating organistation via api v2
The docs for https://zitadel.com/docs/apis/resources/org_service_v2/organization-service-add-organization say I can set a cutsom organization id, by sending an orgId parameter.
But when I create a org the parameter is ignored.
I use self hosted zitadel on version: v3.3.0
ZITADEL Docs
Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER.
5 Replies
Hi @Manuel, I'm an AI assistant for ZITADEL. While a team member reviews this question, I'll see if I can find relevant sources for your question.
Answer
I wasn't able to find a direct answer, here are some relevant sources:
1. Create an Organization : The v2 API documentation shows an
orgId parameter for creating organizations with custom IDs.
2. Custom organization ID : This GitHub discussion from January 2025 addresses the exact issue you're experiencing - the custom organization ID feature appears to be inconsistent in the V2 API implementation.
Feel free to tag @Ask Inkeep with additional questions.hey @Manuel there's an open bug on the same
https://github.com/zitadel/zitadel/discussions/9202
Thank you 🙂 I updated to v4.1.4 and there it works
hey @Manuel awesome that it worked 🙂
you can mark my answer with ✅ and it will auto close this thread 🙂
🎉 Looks like you just helped out another community member! Thanks for being so helpful <@1346540274674827395>! You're now one step closer to leveling up—keep up the amazing peer support! 🚀