{ "openapi": "3.0.0", "info": { "title": "Anaplan SCIM API", "version": "1.0.0", "description": "Anaplan implementation of SCIM 2.0 (RFC 7644) for user identity management. Supports Users and Anaplan-specific entitlements only. Groups are not implemented." }, "servers": [ { "url": "https://api.anaplan.com/scim/1/0/v2", "description": "US1, US2, US5, US7, EU1, EU2, EU4, AP1" }, { "url": "https://us9.api.anaplan.com/scim/1/0/v2", "description": "US9" }, { "url": "https://eu3.api.anaplan.com/scim/1/0/v2", "description": "EU3" }, { "url": "https://eu5.api.anaplan.com/scim/1/0/v2", "description": "EU5" }, { "url": "https://gb1.api.anaplan.com/scim/1/0/v2", "description": "GB1" }, { "url": "https://ca1a.api.anaplan.com/scim/1/0/v2", "description": "CA1" }, { "url": "https://sg1.api.anaplan.com/scim/1/0/v2", "description": "SG1" }, { "url": "https://ae1.api.anaplan.com/scim/1/0/v2", "description": "AE1" }, { "url": "https://in1.api.anaplan.com/scim/1/0/v2", "description": "IN1" }, { "url": "https://id1.api.anaplan.com/scim/1/0/v2", "description": "ID1" }, { "url": "https://me1.api.anaplan.com/scim/1/0/v2", "description": "ME1" }, { "url": "https://au1a.api2.anaplan.com/scim/1/0/v2", "description": "AU1" } ], "security": [ { "AnaplanAuthToken": [] }, { "BearerAuth": [] }, { "BasicAuth": [] } ], "paths": { "/Users": { "get": { "summary": "List users (created, lastModified, workspace entitlements)", "description": "Minimum role: User Administrator.\n\nReturns a paginated list of users. Each user includes the `created` and `lastModified` dates and the workspace `entitlements`. Supports SCIM filtering, pagination, and count controls. Maximum 100 users per call.", "operationId": "listUsers", "x-anaplan-min-role": "User Administrator", "parameters": [ { "name": "filter", "in": "query", "description": "SCIM filter expression. The Anaplan implementation supports only a subset. Unsupported operators or attributes return 400 with scimType `invalidValue`.\n\n**Operators:** `eq`, `ne`, `pr`, `gt`, `ge`, `lt`, `le`.\n\n**Logical operators / grouping:** `and`, `or`, and precedence grouping with `( )` (including nested groups).\n\n**Filterable attributes:** `userName`, `active`, `id`, `externalId`, and `name` sub-attributes via dot notation such as `name.familyName`.", "schema": { "type": "string", "example": "userName eq \"john@example.com\"" }, "examples": { "byUserName": { "summary": "Match a user by email (userName)", "value": "userName eq \"john@example.com\"" }, "activeOnly": { "summary": "Active users only", "value": "active eq true" }, "andGrouped": { "summary": "Combine conditions with and + grouping", "value": "(userName eq \"john@example.com\") and (active eq true)" } } }, { "name": "startIndex", "in": "query", "description": "1-based index of the first result in the current set of list results.", "schema": { "type": "integer", "default": 1 } }, { "name": "count", "in": "query", "description": "Maximum number of results per page. Maximum allowed value is 100.", "schema": { "type": "integer", "default": 100 } } ], "responses": { "200": { "description": "A paginated list of users.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ListResponse" } } } }, "400": { "description": "Invalid filter expression or request.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "401": { "description": "Missing or invalid authentication token.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "403": { "description": "Caller does not have USER_ADMIN role.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } } } }, "post": { "summary": "Create user", "description": "Minimum role: User Administrator.\n\nCreates a new user and assigns Anaplan entitlements. Maximum 50 workspaces per call. SCIM does not support Visiting users.", "operationId": "createUser", "x-anaplan-min-role": "User Administrator", "requestBody": { "required": true, "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "responses": { "201": { "description": "User created.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "400": { "description": "Invalid request body or missing required fields.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "401": { "description": "Missing or invalid authentication token.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "403": { "description": "Caller does not have USER_ADMIN role.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "409": { "description": "User already exists (conflict on userName).", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } } } } }, "/Users/{id}": { "parameters": [ { "name": "id", "in": "path", "description": "Anaplan-assigned hex-32 GUID of the user — the same value as the Anaplan user ID. From `GET /Users` (`Resources[].id`). If SCIM access is unavailable, the same GUID comes from `GET /users` or `GET /users/me` in the Integration API.", "required": true, "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "example": "8a8b8c8d8e8f1a2b3c4d5e6f78901234" } ], "get": { "summary": "Get user (created, lastModified, workspace entitlements)", "description": "Minimum role: User Administrator.\n\nRetrieves a single user by their Anaplan ID. The response includes the `created` and `lastModified` dates and the workspace `entitlements` of the user.", "operationId": "getUser", "x-anaplan-min-role": "User Administrator", "responses": { "200": { "description": "The requested user.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "401": { "description": "Missing or invalid authentication token.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "403": { "description": "Caller does not have USER_ADMIN role.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "404": { "description": "User not found.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } } } }, "put": { "summary": "Replace user", "description": "Minimum role: User Administrator.\n\nPerforms a full replacement of a user resource. All mutable attributes must be provided. Omitted attributes are cleared.", "operationId": "replaceUser", "x-anaplan-min-role": "User Administrator", "requestBody": { "required": true, "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "responses": { "200": { "description": "User replaced.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "400": { "description": "Invalid request body.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "401": { "description": "Missing or invalid authentication token.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "403": { "description": "Caller does not have USER_ADMIN role.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "404": { "description": "User not found.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } } } }, "patch": { "summary": "Update user", "description": "Minimum role: User Administrator.\n\nPerforms a partial update of a user resource using SCIM PatchOp semantics (RFC 7644 §3.5.2).", "operationId": "patchUser", "x-anaplan-min-role": "User Administrator", "requestBody": { "required": true, "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/PatchOp" } } } }, "responses": { "200": { "description": "User updated.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "400": { "description": "Invalid PatchOp or unsupported operation.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "401": { "description": "Missing or invalid authentication token.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "403": { "description": "Caller does not have USER_ADMIN role.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } }, "404": { "description": "User not found.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } } } } }, "/ResourceTypes": { "get": { "summary": "Get resource types", "description": "Minimum role: None.\n\nReturns the SCIM resource types supported by this service provider.", "operationId": "getResourceTypes", "responses": { "200": { "description": "List of supported resource types.", "content": { "application/scim+json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" } }, "totalResults": { "type": "integer" }, "Resources": { "type": "array", "items": { "type": "object" } } } } } } }, "401": { "description": "Missing or invalid authentication token.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } } }, "security": [], "x-anaplan-min-role": "None" } }, "/Schemas": { "get": { "summary": "Get schemas", "description": "Minimum role: None.\n\nReturns the SCIM schema definitions supported by this service provider.", "operationId": "getSchemas", "responses": { "200": { "description": "List of schema definitions.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ListResponse" } } } }, "401": { "description": "Missing or invalid authentication token.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } } }, "security": [], "x-anaplan-min-role": "None" } }, "/ServiceProviderConfig": { "get": { "summary": "Get service provider configuration", "description": "Minimum role: None.\n\nReturns a description of the service provider's SCIM configuration and capabilities (patch support, bulk, filter, sort, etc.).", "operationId": "getServiceProviderConfig", "responses": { "200": { "description": "Service provider configuration.", "content": { "application/scim+json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" } }, "patch": { "type": "object", "properties": { "supported": { "type": "boolean" } } }, "bulk": { "type": "object", "properties": { "supported": { "type": "boolean" }, "maxOperations": { "type": "integer" }, "maxPayloadSize": { "type": "integer" } } }, "filter": { "type": "object", "properties": { "supported": { "type": "boolean" }, "maxResults": { "type": "integer" } } }, "changePassword": { "type": "object", "properties": { "supported": { "type": "boolean" } } }, "sort": { "type": "object", "properties": { "supported": { "type": "boolean" } } }, "etag": { "type": "object", "properties": { "supported": { "type": "boolean" } } }, "authenticationSchemes": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" } } } } } } } } }, "401": { "description": "Missing or invalid authentication token.", "content": { "application/scim+json": { "schema": { "$ref": "#/components/schemas/ScimError" } } } } }, "security": [], "x-anaplan-min-role": "None" } } }, "components": { "securitySchemes": { "AnaplanAuthToken": { "type": "apiKey", "in": "header", "name": "Authorization", "description": "Anaplan authentication token. Format: `AnaplanAuthToken {token}`" }, "BearerAuth": { "type": "http", "scheme": "bearer", "description": "Bearer credential. Accepts an AnaplanAuthToken value or an Anaplan API key. Format: `Bearer {token-or-api-key}`. Not a distinct OAuth 2.0 flow." }, "BasicAuth": { "type": "http", "scheme": "basic", "description": "HTTP Basic authentication. Format: `Basic `" } }, "schemas": { "User": { "type": "object", "description": "Anaplan SCIM User resource. Implements the SCIM core User schema plus Anaplan-specific entitlements.", "required": [ "userName", "name" ], "properties": { "schemas": { "type": "array", "description": "List of SCIM schema URNs that declare the resource type. For the Anaplan User resource, include `urn:ietf:params:scim:schemas:core:2.0:User`.", "items": { "type": "string" } }, "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "Anaplan-assigned hex-32 GUID for this user (read-only).", "readOnly": true }, "externalId": { "type": "string", "description": "Unique identifier assigned by the provisioning client. Format is caller-controlled. There is no pattern constraint." }, "userName": { "type": "string", "description": "Username of the user. Required and unique (read-only after creation).", "readOnly": true }, "name": { "type": "object", "description": "Components of the user's real name.", "required": [ "familyName", "givenName" ], "properties": { "familyName": { "type": "string" }, "givenName": { "type": "string" }, "formatted": { "type": "string", "description": "Formatted full name (read-only, generated from givenName + familyName).", "readOnly": true } } }, "displayName": { "type": "string", "description": "Display name (read-only, generated from givenName + familyName).", "readOnly": true }, "active": { "type": "boolean", "description": "Controls whether the user can log into Anaplan." }, "emails": { "type": "array", "description": "Email addresses for the user. Only `work` type is supported.", "items": { "type": "object", "properties": { "value": { "type": "string", "description": "The email address." }, "type": { "type": "string", "description": "The type of email. Only `work` is supported." }, "primary": { "type": "boolean", "readOnly": true } } } }, "entitlements": { "type": "array", "description": "Anaplan-specific workspace entitlements for the user. Not a standard SCIM attribute. Maximum 50 workspaces per create call.", "items": { "type": "object", "properties": { "value": { "type": "string", "description": "The target resource ID of the entitlement. For `WORKSPACE` type this is a workspace GUID from `GET /workspaces` in the [Integration API](https://help.anaplan.com/integration-api-v20-3107aa54-d12b-4c48-9550-3561c84adbb2) (`workspaces[].id`). For `WORKSPACE_IDS` it is a comma-delimited list of those GUIDs.", "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" }, "display": { "type": "string", "description": "Human-readable name of the entitlement.", "example": "Sales Planning" }, "type": { "type": "string", "description": "Entitlement grouping format.\n\n- `WORKSPACE`: one object per workspace. Use this form when writing.\n- `WORKSPACE_IDS`: a single object. Its `value` is a comma-delimited list of workspace GUIDs.\n- `WORKSPACE_NAMES`: a single object. Its `value` is a comma-delimited list of workspace names.\n\nResponses typically include all three variants for the same workspace set.", "enum": [ "WORKSPACE", "WORKSPACE_IDS", "WORKSPACE_NAMES" ], "readOnly": true }, "primary": { "type": "boolean", "description": "Indicates the primary entitlement. At most one entry may be `true`.", "readOnly": true } } } }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string" }, "created": { "type": "string", "format": "date-time", "description": "Date and time the user account was created, in UTC.", "example": "2023-11-21T04:40:50Z", "readOnly": true }, "lastModified": { "type": "string", "format": "date-time", "description": "Date and time the user account was last modified, in UTC.", "example": "2026-08-21T08:22:57Z", "readOnly": true }, "location": { "type": "string" } } } } }, "ListResponse": { "type": "object", "description": "SCIM ListResponse envelope (RFC 7644 §3.4.2).", "required": [ "schemas", "totalResults" ], "properties": { "schemas": { "type": "array", "description": "List of SCIM schema URNs declaring the envelope type. The value is always `[\"urn:ietf:params:scim:api:messages:2.0:ListResponse\"]`.", "items": { "type": "string" } }, "totalResults": { "type": "integer", "description": "Total number of results matching the query." }, "startIndex": { "type": "integer", "description": "1-based index of the first result returned." }, "itemsPerPage": { "type": "integer", "description": "Number of results returned in this response." }, "Resources": { "type": "array", "items": { "$ref": "#/components/schemas/User" } } } }, "ScimError": { "type": "object", "description": "SCIM error response (RFC 7644 §3.12).", "required": [ "schemas", "status" ], "properties": { "schemas": { "type": "array", "description": "List of SCIM schema URNs declaring the error type. The value is always `[\"urn:ietf:params:scim:api:messages:2.0:Error\"]`.", "items": { "type": "string" } }, "status": { "type": "string", "description": "HTTP status code as a string." }, "detail": { "type": "string", "description": "Human-readable error message." }, "scimType": { "type": "string", "description": "SCIM-specific error type.", "example": "invalidValue" } } }, "PatchOp": { "type": "object", "description": "SCIM PATCH request body (RFC 7644 §3.5.2).", "required": [ "schemas", "Operations" ], "properties": { "schemas": { "type": "array", "description": "List of SCIM schema URNs declaring the patch request type. The value must include `urn:ietf:params:scim:api:messages:2.0:PatchOp`.", "items": { "type": "string" } }, "Operations": { "type": "array", "description": "List of PATCH operations to apply.", "items": { "type": "object", "required": [ "op" ], "properties": { "op": { "type": "string", "enum": [ "add", "remove", "replace" ] }, "path": { "type": "string", "description": "SCIM attribute path to operate on." }, "value": { "description": "New value for `add` or `replace` operations." } } } } } } } } }