Skip to main content
This topic provides example requests and responses for working with users through the LaunchDarkly System for Cross-domain Identity Management (SCIM) API.

Create user (POST)

Endpoint: POST /scim/v2/Users Minimal request:
Request with custom roles (root level):
Response: 201 Created with the created user object including the LaunchDarkly id field.

Update user (PUT)

Endpoint: PUT /scim/v2/Users/{id} PUT requires the complete user object. All fields should be included.
Response: 200 OK

Update user (PATCH)

Endpoint: PATCH /scim/v2/Users/{id} LaunchDarkly supports both SCIM PATCH format and JSON Patch (RFC 6902) for partial updates. SCIM patch format:
Update custom roles:
JSON patch format (alternative):
Supported operations: add, remove, replace

Get user (GET)

Endpoint: GET /scim/v2/Users/{id} Response: 200 OK with complete user object. Complete response example:

Query users (GET)

Endpoint: GET /scim/v2/Users Query parameters:
  • filter: SCIM filter expression (for example, userName eq "user@example.com")
  • startIndex: 1-based starting index for pagination
  • count: Number of results per page
Examples:
Response:

Search users (POST)

Endpoint: POST /scim/v2/Users/.search This is an alternative to GET /scim/v2/Users that accepts filter parameters in the request body. Request:
Response: Same format as GET /scim/v2/Users (ListResponse)

Delete user (DELETE)

Endpoint: DELETE /scim/v2/Users/{id} Response: 204 No Content (or 200 OK with empty body) Note: Deleting a user deactivates them and removes them from the account and all teams. Cannot delete an owner.