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.
1 Reply
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.