-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import of an organization is not possible without instance level permission #216
Comments
This is correct, as the We have another role which is probably suitable for your use-case: |
@muhlemmer of course, one cannot create an org without permissions at the instance level, however importing it (for example to modify its name) should be possible, right? |
The import endpoint of zitadel allows setting of Let me know if you can;t figure it out and I will re-open and ping someone. |
I think we do not speak of the same import: in Terraform, one can import an existing resource, to manage it using Terraform configuration. An instance admin can create an organization, create a service user giving it org owner role on this new organization and I would like to use this service user to import the organization in Terraform to further manage it. But it’s actually not possible at the time, because it seems that there is no management API endpoint to get an organization by ID. |
When using the resource API (v2) the create organization already returns the organization ID in the response: https://zitadel.com/docs/apis/resources/org_service_v2/organization-service-add-organization |
@stebenz can you have a look to above conversation and give a suggestion? I believe our APIs are fully capable of supporting the desired use-case, I'm just not sure how that translates to terraform. |
We would need to rework the org resource in terraform to use the new resource API, currently the admin API is still used.
|
Preflight Checklist
Version
2.0.2
ZITADEL Version
v2.67.1
Describe the problem caused by this bug
An organization cannot be imported when the user is “only” org owner and has no instance level permission. This does not allow setting the organization name, nor getting its primary domain.
To reproduce
terraform import zitadel_org.imported '123456789012345678'
.Result:
Screenshots
No response
Expected behavior
As an org owner, I would like to be able to import my organization.
Relevant Configuration
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: