Skip to main content

Configure SCIM provisioning

After single sign-on is enabled for your company, you can use SCIM (System for Cross-domain Identity Management) so your identity provider can automatically provision and update users and groups in the marketplace, without manual user management.

The SCIM CONFIGURATION section appears on the same page as your SAML settings (Manage > Account > Account | Company Settings > COMPANY SETTINGS | Single Sign-On), below attribute and role mapping. SCIM is disabled by default.

Raw schema URNs and JSON payloads are in the appendix. Use them when your identity provider asks for a raw payload. Okta and Microsoft Entra ID use the fields in Map fields in your identity provider.

Before you start​

  • The marketplace feature scim_identity_provisioning_enabled must already be in place. Enable SCIM Configuration does not turn the feature on. If the section is missing, or calls are rejected after you save, contact your Marketplace Manager or AppDirect technical representative. See Troubleshooting.
  • Complete Configure single sign-on so company SSO is enabled.
  • Each company has its own client. Repeat this setup in every company you administer, and use that company’s Client ID and Client secret. A client provisions users and groups only in its own company.
  • The client secret is shown once. Copy it before you leave the page. When you return it is masked, and it cannot be retrieved. Regenerate Client Secret issues a new secret and invalidates the previous one. Update the identity provider immediately. Last updated on the page is when the credentials last changed.

What SCIM can't do here​

  • Search returns users only for a userName comparison, and groups only for a displayName comparison. A full-list sync, or a lookup on externalId, returns HTTP 200 with zero results. That empty list is a search result. It does not mean the company has no users. See List and search.
  • The client secret cannot be read back after you leave the page.

To configure SCIM​

  1. In SCIM CONFIGURATION, turn on Enable SCIM Configuration.
    When SCIM is off, only the toggle and a short description are shown. When you enable it, the marketplace displays the SCIM endpoints and inbound OAuth 2.0 credentials.
  2. Copy the read-only SCIM Users endpoint and SCIM Groups endpoint. The base your identity provider needs is https://<your-marketplace-host>/api/scim/v2. Okta and Entra append /Users and /Groups themselves. Use the full Users or Groups URL only when the identity provider asks for that resource on its own.
  3. Under Inbound Credentials (OAuth 2.0), copy the Client ID and Client secret into the identity provider fields in the table below. Store the secret. It is shown only once.
  4. Click Save.

Map fields in your identity provider​

Use OAuth 2.0 client credentials. The token URL is https://<your-marketplace-host>/oauth2/token.

Request scope ROLE_IDENTITY_PROVISIONING, or leave scope empty. An empty scope still receives that role. A different scope produces a token without it, and provisioning calls are rejected.

Marketplace fieldOkta fieldEntra field
Base URL https://<your-marketplace-host>/api/scim/v2Base URL (SCIM connector). Okta appends /Users and /Groups.Tenant URL. Entra appends /Users and /Groups.
Client IDClient ID on Provisioning > Configure API integration, grant type Client CredentialsClient identifier, authentication method OAuth2 client credentials grant
Client secretClient secretClient secret
Token URL https://<your-marketplace-host>/oauth2/tokenToken endpointOAuth token endpoint
Scope ROLE_IDENTITY_PROVISIONING, or leave emptyScopesSend this scope on the token request, or omit scope

Decide what happens when access changes​

Choose the row that matches the person. In every row the account stays in the marketplace, the user cannot sign in to this company, and their marketplace group memberships stay in place.

ScenarioWhat the identity provider sendsEffect
User on leaveactive set to falseDisabled. The identity-provider link (sourceId) is kept.
User removed from the directorydeleted set to true on Update User or Patch UserDisabled. sourceId is cleared, so the account is unlinked from the identity provider.
Remove access from the marketplaceDELETE /Users/{id}Disabled and unlinked. Same result as deleted set to true. HTTP 204, no body.

When someone on leave returns, the identity provider sets active to true. The same account is enabled, and the identity-provider link is still there.

After a directory removal or DELETE /Users/{id}, the marketplace does not re-link the account on its own. The account is still there, so a new create with the same userName is rejected. To restore access, update that user with active set to true and send sourceId again.

Payloads for these calls are in Mark a user as deleted and Delete a user or group.

Appendix: Attribute and payload reference​

Use this section when your identity provider asks for raw SCIM payloads.

GET /Users and POST /Users/.search query the marketplace only when the filter compares userName. Use the attribute name userName:

GET https://<your-marketplace-host>/api/scim/v2/Users?filter=userName eq "jane.doe@example.com"

POST /Users/.search uses the same filter in the request body.

A list or search with no filter, or with a filter that does not compare userName, returns HTTP 200 and an empty list (totalResults 0 and Resources []). That includes externalId eq "...". The response does not contain the company’s users. A full-list sync that treats this empty result as the current set of users sees zero users.

When you already have the marketplace user id, retrieve that user with GET /Users/{id}.

GET /Groups and POST /Groups/.search follow the same rule, keyed on displayName:

GET https://<your-marketplace-host>/api/scim/v2/Groups?filter=displayName eq "Engineering"

A group list or search with no filter, or with a filter on another attribute such as externalId, returns HTTP 200 and an empty list.

SCIM User resource attributes​

When you create or replace users through the SCIM Users endpoint, the service requires schemas, userName, name.givenName, name.familyName, and a valid emails value on each email entry you send. You can omit meta. Every other User attribute below is optional. Patch User can update a subset of these attributes. To mark a user as removed from your identity source, set deleted on Update User or Patch User (see Mark a user as deleted).

Required attributes​

  • schemas — SCIM schema URNs. Include the core User schema (urn:ietf:params:scim:schemas:core:2.0:User). When you send enterprise fields, also include the enterprise extension URN (see sample payloads below).
  • userName — Unique username for the user (often the same as the primary work email).
  • name.givenName and name.familyName — Both parts of the SCIM name attribute are required. Other name fields, such as formatted, are optional.
  • emails[].value — Each object in emails must include a valid value. type and primary are optional. You can omit emails entirely.

Optional attributes​

  • active — Whether the user is enabled in the marketplace (true or false). You can omit active. On update and patch, false disables the user and keeps sourceId.
  • sourceId — Identifier for the user in your identity source (for example the object ID from your identity provider). You can omit sourceId. Create, update, and patch succeed without it.
  • externalId — Your identifier for this user for correlation across systems. You can omit externalId. Group externalId is a separate requirement; see SCIM Group resource attributes.
  • meta — SCIM meta object. You can omit it, or send a minimal object (for example resourceType set to User). Timestamps and location are typically populated on responses.
  • deleted — Boolean (true or false) on Update User (PUT) and Patch User (PATCH). true disables the user and clears sourceId, which unlinks the account from the identity provider. Create User does not apply this attribute. See Mark a user as deleted.
  • title — Job title (mapped to the marketplace user profile).
  • officeLocation — Office or location label.
  • Enterprise extension — Use the standard SCIM enterprise extension object urn:ietf:params:scim:schemas:extension:enterprise:2.0:User with optional:
    • department
    • manager — Object with value (manager’s identifier)

Other SCIM core fields (for example displayName, locale, phoneNumbers) may be accepted depending on your provider.

Sample User payloads​

Minimal example (required attributes only):

{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "jane.doe@example.com",
"name": {
"familyName": "Doe",
"givenName": "Jane"
},
"emails": [
{
"value": "jane.doe@example.com"
}
]
}

Example including optional active, sourceId, externalId, meta, title, officeLocation, and the enterprise extension (department, manager):

{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"userName": "jane.doe@example.com",
"name": {
"familyName": "Doe",
"givenName": "Jane"
},
"emails": [
{
"value": "jane.doe@example.com",
"type": "work",
"primary": true
}
],
"active": true,
"sourceId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"externalId": "ext-user-jane-001",
"title": "Senior Engineer",
"officeLocation": "HQ / Building C",
"meta": {
"resourceType": "User"
},
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
"department": "Engineering",
"manager": {
"value": "bbbbbbbb-cccc-dddd-eeee-ffffffffffff"
}
}
}

Mark a user as deleted​

For the outcome of each choice, see Decide what happens when access changes.

Update User (PUT /Users/{id}) and Patch User (PATCH /Users/{id}) accept deleted. Create User does not apply it, and user responses omit it. DELETE /Users/{id} is a separate call with the same disable-and-unlink result. See Delete a user or group.

Set deleted to true when the identity provider has removed the user from the source directory (for example, a soft-deleted user in Microsoft Entra ID). The marketplace then:

  • Disables the user.
  • Clears sourceId, so the account is no longer linked to the identity provider object. A sourceId included in the same request is cleared as well.

active and deleted are separate attributes. active set to false disables the user and keeps sourceId. You can send both in one request. When deleted is true, the user is disabled and sourceId is cleared.

Leave deleted out of a request, or set it to false, when the user should stay linked to the identity source. A Patch remove operation for deleted is ignored. On Patch User, add and replace both set the attribute.

Sample Patch User request (PATCH https://<your-marketplace-host>/api/scim/v2/Users/{id}):

{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "replace",
"path": "active",
"value": false
},
{
"op": "replace",
"path": "deleted",
"value": true
}
]
}

Sample Update User request (PUT https://<your-marketplace-host>/api/scim/v2/Users/11111111-2222-3333-4444-555555555555). Include id in the body as well as in the path; the two values must match. Include deleted on the User resource with the attributes you send on replace:

{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "11111111-2222-3333-4444-555555555555",
"userName": "jane.doe@example.com",
"name": {
"familyName": "Doe",
"givenName": "Jane"
},
"emails": [
{
"value": "jane.doe@example.com",
"type": "work",
"primary": true
}
],
"active": false,
"deleted": true,
"sourceId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"externalId": "ext-user-jane-001",
"meta": {
"resourceType": "User"
}
}

SCIM Group resource attributes​

Required attributes​

  • schemas — SCIM schema URNs. Include the core Group schema (urn:ietf:params:scim:schemas:core:2.0:Group). When you use marketplace group fields, also include the AppDirect marketplace group extension URN (see sample below).
  • displayName — Name of the group in the marketplace.
  • externalId — Your identifier for the group for correlation across systems. Create and replace reject a Group that omits externalId.

Optional attributes​

  • meta — SCIM meta object. You can omit it, or send a minimal object (for example resourceType set to Group).
  • members — Users in the group. Omit members to create a group with no one in it. Each entry requires:
    • value — Marketplace user id.
    • type — User.
    • $ref and display are optional.

Create applies members on the Group body. After the group exists, change membership with Patch Group add and remove. Update Group (PUT) leaves membership unchanged, and a Patch replace of members leaves membership unchanged.

Sample Group payload​

{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group",
"urn:appdirect:params:scim:schemas:extension:marketplace:1.0:Group"
],
"displayName": "Engineering",
"externalId": "ext-group-engineering-01",
"members": [
{
"value": "11111111-2222-3333-4444-555555555555",
"type": "User"
}
],
"meta": {
"resourceType": "Group"
}
}

Change group membership​

PATCH https://<your-marketplace-host>/api/scim/v2/Groups/{id}

Send add to put users in the group and remove to take them out. path is members. value is one member object or a list of member objects. Each object uses the same value and type as on create.

{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "add",
"path": "members",
"value": [
{
"value": "11111111-2222-3333-4444-555555555555",
"type": "User"
}
]
},
{
"op": "remove",
"path": "members",
"value": [
{
"value": "22222222-3333-4444-5555-666666666666",
"type": "User"
}
]
}
]
}

Delete a user or group​

DELETE /Users/{id} and DELETE /Groups/{id} are soft deletes. Both return HTTP 204 and no response body. The marketplace keeps the user or group record.

Delete a user​

DELETE https://<your-marketplace-host>/api/scim/v2/Users/{id}

The marketplace:

  • Disables the user.
  • Clears sourceId, so the account is no longer linked to the identity provider object.

The user account remains. This call sends no body and does not use the deleted attribute.

Update User and Patch User reach the same disabled, unlinked state when deleted is true. Those requests can also change other attributes in the same body, and the response is the User resource. See Mark a user as deleted.

Delete a group​

DELETE https://<your-marketplace-host>/api/scim/v2/Groups/{id}

The marketplace clears the group’s externalId, which removes the identity-provider link. The group and its memberships remain.

Was this page helpful?