Manage Kestra User Group Memberships with the Terraform Provider
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Terraform Resource: kestra_user_group_membership
Manages a single membership of a user in a group. Use this resource when different Terraform configurations need to manage different group memberships for the same user, without overwriting each other’s assignments. Each resource owns exactly one user-group pair.
On Kestra 2.0 and above the user must already have access to the tenant: this resource resolves the user through a tenant access check and fails with a 404 otherwise. Declare a kestra_user_tenant_access for the user and make this resource depend on it. Deleting this resource does not revoke that access.
This resource is only available on the Enterprise Edition
Example usage
resource "kestra_user_group_membership" "example" { user_id = "4by6NvSLcPXFhCj8nwbZOM" group_id = "2ZQwf5Lj9pUyKxRtBvNm8H"}Schema
Required
group_id(String) The id of the group the user should belong to.user_id(String) The id of the user.
Read-Only
id(String) The ID of this resource.tenant_id(String) The tenant id.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import kestra_user_group_membership.example {{group_id}}/{{user_id}}Was this page helpful?