# Scim

> SCIM 2.0 (`/scim/v2`, RFC 7643/7644) for Okta, Microsoft Entra ID and others: Users ↔ people, Groups ↔ teams: 15 endpoints of the Teemli API.

Source: https://docs.teemli.com/developers/reference/scim/

Generated from [`api/openapi.yaml`](/developers/api/) (OpenAPI 3.1). Base URL: `https://api.teemli.com`. Auth: `Authorization: Bearer <token or tml_ API key>`. Errors are `application/problem+json`; writes accept an `Idempotency-Key` header.

SCIM 2.0 (`/scim/v2`, RFC 7643/7644) for Okta, Microsoft Entra ID and others: Users ↔ people, Groups ↔ teams.
Bearer token per organisation from `POST /admin/scim/tokens`. `active: false` or DELETE runs offboarding.

## List or filter users (`userName eq "…"`, `externalId eq "…"`)

```http
GET /scim/v2/Users
```

**API keys:** not available (needs a person signed in to the app).

**Responses**

- `200` ListResponse
- `401` Bad token

## Provision a person (invited until first sign-in)

```http
POST /scim/v2/Users
```

**API keys:** not available (needs a person signed in to the app).

**Request body:** `application/scim+json`.

**Responses**

- `201` User
- `409` uniqueness

## A user

```http
GET /scim/v2/Users/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `id` (required) | path | string |  |

**Responses**

- `200` User

## Replace a user

```http
PUT /scim/v2/Users/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `id` (required) | path | string |  |

**Responses**

- `200` User

## PatchOp (active, name, displayName, externalId); active false = offboarding

```http
PATCH /scim/v2/Users/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `id` (required) | path | string |  |

**Responses**

- `200` User

## Deprovision (offboarding) and drop from SCIM

```http
DELETE /scim/v2/Users/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `id` (required) | path | string |  |

**Responses**

- `204` Gone

## List or filter groups (displayName / externalId eq)

```http
GET /scim/v2/Groups
```

**API keys:** not available (needs a person signed in to the app).

**Responses**

- `200` ListResponse

## Create a team

```http
POST /scim/v2/Groups
```

**API keys:** not available (needs a person signed in to the app).

**Responses**

- `201` Group

## A group

```http
GET /scim/v2/Groups/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `id` (required) | path | string |  |

**Responses**

- `200` Group

## Replace a group

```http
PUT /scim/v2/Groups/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `id` (required) | path | string |  |

**Responses**

- `200` Group

## Add / remove / replace members, rename

```http
PATCH /scim/v2/Groups/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `id` (required) | path | string |  |

**Responses**

- `200` Group

## Delete a team

```http
DELETE /scim/v2/Groups/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `id` (required) | path | string |  |

**Responses**

- `204` Gone

## Capabilities (patch, filter; no bulk, sort or etag)

```http
GET /scim/v2/ServiceProviderConfig
```

**API keys:** not available (needs a person signed in to the app).

**Responses**

- `200` OK

## User and Group

```http
GET /scim/v2/ResourceTypes
```

**API keys:** not available (needs a person signed in to the app).

**Responses**

- `200` OK

## Core User and Group schemas (supported attributes)

```http
GET /scim/v2/Schemas
```

**API keys:** not available (needs a person signed in to the app).

**Responses**

- `200` OK
