# clerk_organization_membership (Resource)

One user's membership in one organization.

## Example Usage

```terraform
resource "clerk_organization_membership" "wihan" {
  organization_id = clerk_organization.acme.id
  user_id         = "user_2abcDEFghiJKLmnoPQRstuVWXyz"
  role            = "org:admin"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `organization_id` (String) Organization id. A change forces a replacement.
- `role` (String) Role key of the member, for example `org:admin` or a custom `clerk_organization_role` key.
- `user_id` (String) User id. A change forces a replacement.

### Read-Only

- `id` (String) Membership id (`orgmem_...`).
- `role_name` (String) Display name of the role.

## Import

Import is supported using the following syntax:

The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:

```shell
# The import id is "organization_id/user_id".
terraform import clerk_organization_membership.wihan org_2abc.../user_2abc...
```