---
title: "uptimeify_im_team_member"
description: "Ressource uptimeify_im_team_member: Beispiel, alle Attribute, Import."
---

<Callout>Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.</Callout>

A member of an Incident Management team. Set `user_id` for an existing login (admin, editor or responder of the organization), or `invite_email` to invite by email (an unknown address gets a new account and an invitation mail). Import with `<team_id>/<member_id>`.

## Beispiel

```terraform
data "uptimeify_user" "alice" {
  email = "alice@example.com"
}

resource "uptimeify_im_team_member" "alice" {
  team_id = uptimeify_im_team.platform.id
  user_id = data.uptimeify_user.alice.id
  im_role = "admin"
}

# Invite by email: an unknown address gets an account and an invitation mail.
resource "uptimeify_im_team_member" "bob" {
  team_id      = uptimeify_im_team.platform.id
  invite_email = "bob@example.com"
}
```

## Schema

### Pflichtfelder

- `team_id` (Number)

### Optional

- `im_role` (String) `admin`, `member` or `stakeholder`. Default `member`.
- `invite_email` (String) Invite by email instead of `user_id`; sends an invitation mail for a new address. Only used on create, not read back.
- `user_id` (String) User id (see data source `uptimeify_user`). Changing it replaces the membership.

### Nur lesbar

- `id` (String) `<team_id>/<member_id>`.
- `member_id` (Number) Numeric membership id.

## Import

Import geht so:

Mit [`tofu import` bzw. `terraform import`](https://developer.hashicorp.com/terraform/cli/commands/import), zum Beispiel:

```shell
# <team_id>/<member_id>
terraform import uptimeify_im_team_member.alice 12/34
```
