---
title: "SCIM"
description: "Configure the Identity Manager SCIM connector to export and fulfill entities from a SCIM compliant application, including Salesforce, Slack, and cyberark."
sidebar_position: 260
---

# SCIM

This connector exports and fulfills entities from/to a [SCIM](https://www.okta.com/blog/2017/01/what-is-scim/) compliant application.

This page is about:

- Custom/SCIM
- CRM/Salesforce
- Messaging/Slack
- PAM/<b>cyberark</b>

![Package: Custom/SCIM](/images/identitymanager/packages_scim_v603.webp)

![Package: CRM/Salesforce](/images/identitymanager/packages_salesforce_v603.webp)

![Package: Messaging/Slack](/images/identitymanager/packages_slack_v603.webp)

![Package: PAM/<b>cyberark</b>](/images/identitymanager/packages_cyberark_v603.webp)

## Overview

System for Cross-domain Identity Management (SCIM) is a Request for Comments (RFC) standard. It describes a REST API with specific endpoints to get and set data in a web application for IGA purposes. It allows an identity provider to manage the web application's accounts. For more details about SCIM and RFC, see the [IETF document](https://tools.ietf.org/html/rfc7644).

:::note
 Similarly to the Salesforce REST-based API, SCIM for Salesforce enables reading and writing attributes, but writes to a smaller subset. For example, the following properties are manageable by the Salesforce REST-based API but not SCIM: `PermissionSetGroup`, `PermissionSetLicense`, `UserPermissionsKnowledgeUser`, `UserPermissionsInteractionUser`, `UserPermissionsSupportUser`, `CallCenterId`, `SenderEmail`.
:::
See the [Salesforce's documentation](https://help.salesforce.com/s/articleView?id=sf.identity_scim_rest_api.htm&type=5) for additional information.

## Prerequisites

Implementing this connector requires the web application that you want to synchronize to implement SCIM Version 2.0 or later.

The implementation of the Salesforce connector requires the completion of the following steps:

- Connect the application
- Enable OAuth authentication
- Reset the user token
- Configure the Salesforce connection

**Connect the application**

To connect to the Salesforce application do the following:

**Step 1 –** Log into Salesforce using an admin account.

![salesforce-advancesetup](/images/identitymanager/salesforce-advancesetup.webp)

**Step 2 –** Go to **Advanced Setup**.

![salesforce-newconnectedapp](/images/identitymanager/salesforce-newconnectedapp.webp)

**Step 3 –** Go to **App Manager** and ****create** a Connected App**.

![salesforce-enableoauth](/images/identitymanager/salesforce-enableoauth.webp)

**Step 4 –** Fill in the details of the application: Application Name, API Name, Contact Email, select **Enable OAuth Settings**, and complete the mandatory information as callback URL and OAuth Scopes.

**Step 5 –** Save the Application.

![salesforce-manageconnectedapps](/images/identitymanager/salesforce-manageconnectedapps.webp)

**Step 6 –** Go to **Manage Connected Apps** and click the newly created application.

![salesforce-manageconsumerdetails](/images/identitymanager/salesforce-manageconsumerdetails.webp)

**Step 7 –** Click **Manage Consumer Details**.

![salesforce-consumerkey](/images/identitymanager/salesforce-consumerkey.webp)

**Step 8 –** Copy the Consumer Key and Consumer Secret in your Keypass.

**Enable OAuth authentication**

To enable the OAuth authentication do the following:

**Step 1 –** Log into Salesforce using an admin account.

![salesforce-advancesetup](/images/identitymanager/salesforce-advancesetup.webp)

**Step 2 –** Go to **Advanced Setup**.

![oauthauthentication](/images/identitymanager/oauthauthentication.webp)

**Step 3 –** Go to **OAuth** and **OpenID Connect Settings** in the **Identity** dropdown menu, enable the option to **Allow OAuth Username-Password Flows**.

**Reset the user token**

To reset the user token do the following:

**Step 1 –** Log into Salesforce using an admin account.

![salesforce-usertoken-settings](/images/identitymanager/salesforce-usertoken-settings.webp)

**Step 2 –** Click **Settings** under the profile details.

![salesforce-resetseuritytoken](/images/identitymanager/salesforce-resetseuritytoken.webp)

**Step 3 –** Click **Reset My Security Token**.

![salesforce-checkemail](/images/identitymanager/salesforce-checkemail.webp)

**Step 4 –** An email containing the new token will be sent.

**Configure the Salesforce connection**

To configure the Salesforce connection do the following:

**Step 1 –** Log into Identity Manager using an admin account.

![salesforce-connector](/images/identitymanager/salesforce-connector.webp)

**Step 2 –** **create** a new Salesforce connector.

![salesforce-connection](/images/identitymanager/salesforce-connection.webp)

**Step 3 –** Add a new Salesforce connection.

![salesforce-agent-settings](/images/identitymanager/salesforce-agent-settings.webp)

**Step 4 –** Fill the fields in the **Connection Settings** and choose the **Filter**.

The configuration of the Salesforce connector is completed.

### Configuration

This process is configured through a connection in the UI and/or the XML configuration, and in the ***appsettings.agent.json*** > **Connections** section. See the [Connection](../../../integrations/toolkit/xml-configuration/connectors/connection.md) topic for additional information.

Replace code attributes enclosed with `<>` with a custom value before you enter the script in the command line.

```json
*appsettings.agent.json*
{
  ...
  "Connections": {
    ...
    "<ConnectionIdentifier>": {
      ...
    }
  }
}
```

:::tip
 Remember, the identifier of the connection and thus the name of the subsection must:
:::
- Be unique
- Not begin with a digit
- Not contain `<`, `>`, `:`, `/`, `\`, `|`, `?`, `*`, and `_`.

The following example gets information via SCIM on a web application whose URL base is `https://example.for.doc.com`:

Replace code attributes enclosed with `<>` with a custom value before you enter the script in the command line.

```json
*appsettings.agent.json*
{
  ...
  "Connections": {
    ...
    "SCIMExport": {
        "ApplicationId": "<applicationIdExample>",
        "Server": "<https://example.for.doc.com/services/scim>",
        "ApplicationKey": "<KEY>",
        "Login": "<login>",
        "Password": "<password>",
        "Filter": "<Users|?filter=active eq \"true\">"
    }
  }
}
```

This example uses an account's credentials (login and password) with the application's credentials (ApplicationId and ApplicationKey).

The filter `?filter=active eq \"true\"` retrieves active Users from the external system.

#### Setting attributes

 | Name | Type | Description |
 | --- | --- | --- |
 | Filter optional | String | Filters applied in the SCIM request retrieving the entities. You should write the filters as you would write them in the URL (including the "?"). For more details on the syntax, see the [RFC document](https://tools.ietf.org/html/rfc7644#rfc-document). Syntax:EntityNameInSCIM1&#124;scimFilter1\*EntityNameInSCIM2&#124;scimFilter2\*EntityNameInSCIM3&#124;scimFilter3 |
 | OAuth2Url optional | String | URL which get tokens for the requests. The system can usually find this information, but sometimes the system gets it wrong, like Salesforce for example. |
 | PageSize default value: 200 | String | Maximum number of elements returned by one request. |
 | Server required | String | URL of the SCIM endpoints of your application, excluding /v2. |
 | ApplicationId optional | String | Login of the application or of the application's Id provider. |
 | Login optional | String | Login of the account. |
 | OAuthToken optional | String | Generated OAuth token to connect to the application. |
 | Password optional | String | Password of the account. |
 | ScimSyntax default value: RFC | String | Type of SCIM implementation: RFC - used for the systems that follow SCIM's rules; Salesforce - required when this connector targets Salesforce; <b>cyberark</b> - required when this connector targets <b>cyberark</b>. |

The credential attributes (ApplicationId, ApplicationKey, Login, and Password) are used to obtain a token from the application for requests.

### Output details

This connector is meant to generate to the ExportOutput folder the following CSV files:

- One file for each SCIM entity, coming from entity type mappings's connection tables, named
`<connectionIdentifier>_<entity>.csv`, with one column for each property having a ConnectionColumn and each property without it but used in an entity association;
- One file for each membership, coming from entity association mappings's connection tables,
named` <connectionIdentifier>_members_<entity>.csv`, with the following columns:
    - Value — ID of the group
    - MemberId — ID of the group member
- One file for each entity named Containers such as <b>cyberark</b>'s privileged data, named
`<connectionIdentifier>_privilegedData_Containers.csv`.

See the [Application Settings](../../network-configuration/agent-configuration/appsettings.md) and [Entity Type Mapping](../../../integrations/toolkit/xml-configuration/connectors/entitytypemapping.md) topics for additional information.

For the connector to work properly, the connection tables must follow the naming conventions too: `<identifier>_<entity> for entities and <identifier>_members_<entity>` for links.

If the connection column describes a sub-property, then the name should have the following pattern: `{property}:{sub-property}`. The character ":" shouldn't be used in other situations.

For example, to retrieve information about Users, Groups, and Groups' members, use the following configuration:

Replace code attributes enclosed with `<>` with a custom value before you enter the script in the command line.

```xml
<EntityTypeMapping Identifier="Salesforce_User" Connector="Salesforce" <b>ConnectionTable="SCIMExport_Users"</b>>  <Property Identifier="SF_id" <b>ConnectionColumn="id"</b> IsPrimaryKey="true" />  <Property Identifier="givenName" <b>ConnectionColumn="name:givenName"</b> />  <Property Identifier="emails" <b>ConnectionColumn="emails:value"</b> /></EntityTypeMapping><EntityTypeMapping Identifier="Salesforce_Group" Connector="Salesforce" <b>ConnectionTable="SCIMExport_Groups"</b>>  <Property Identifier="SF_id" <b>ConnectionColumn="id"</b> IsPrimaryKey="true" />  <Property Identifier="display" <b>ConnectionColumn="displayName"</b> /></EntityTypeMapping><EntityAssociationMapping Identifier="Salesforce_Group_Members" <b>Column1="value"</b> EntityPropertyMapping1="Salesforce_Group:SF_id" <b>Column2="MemberId"</b> EntityPropertyMapping2="Salesforce_User:SF_id" Connector="Salesforce" <b>ConnectionTable="SCIMExport_members_Groups"</b> />
```

This configuration produces SCIMExport_Users.csv with the column headers id, `name:givenName` and `emails:value`, `SCIMExport_Groups.csv` with the column headers id and `displayName`, and `SCIMExport_members_Groups.csv` with the column headers value and `MemberId`.

Each column contains the value of the corresponding attribute. SCIM attributes are described in the [RFC document](https://tools.ietf.org/html/rfc7643).

### Limitations

The incremental mode only works for User entities and not for the others like Groups or Roles. It means that entities like Groups or Roles are always handled with the complete mode.

## Fulfill

This connector writes to the managed web application to **create**, **update**, and/or **delete** users with their attributes and group memberships, but no group or other entities.

### Configuration

Same as for export, fulfill is configured through connections.

> The following example writes information to SCIM on a web application whose URL base is
> `https://example.for.doc.com`.
>
> Code attributes enclosed with `<>` need to be replaced with a custom value before entering the
> script in the command line.
>
> ```
> *appsettings.agent.json*
> {
>   ...
>   "Connections": {
>     ...
>     "SCIMFulfillment": {
>         "ApplicationId": "<applicationIdExample>",
>         "Server": "<https://example.for.doc.com/services/scim>",
>         "ApplicationKey": "<KEY>",
>         "Login": "<login>",
>         "Password": "<password>",
>         "ServiceSupportBulk": true,
>         "BulkMaxOperation": 10
>     }
>   }
> }
> ```
>
> This example uses an account's credentials (login and password) with the application's credentials
> (ApplicationId and ApplicationKey).
>
> This specifies that bulk requests are supported with a maximum of 10 operations per request.

#### Setting attributes

 | Name | Type | Description |
 | --- | --- | --- |
 | BulkMaxOperation optional | Int32 | Maximum number of operations which can be sent in one bulk request. |
 | ServiceSupportBulk optional | Boolean | True to allow bulk requests. depends on the web application's SCIM implementation. See the [RFC document](https://tools.ietf.org/html/rfc7644#rfc-document) for additional information. |
 | Server required | String | URL of the SCIM endpoints of your application, excluding /v2. |
 | ApplicationId optional | String | Login of the application or of the application's Id provider. |
 | ApplicationKey optional | String | Password of the application or of the application's Id provider. |
 | Login optional | String | Login of the account. |
 | OAuthToken optional | String | Generated OAuth token to connect to the application. |
 | Password optional | String | Password of the account. |
 | ScimSyntax default value: RFC | String | Type of SCIM implementation: RFC - used for the systems that follow SCIM's rules; Salesforce - required when this connector targets Salesforce; <b>cyberark</b> - required when this connector targets <b>cyberark</b>. |

The credential attributes (ApplicationId, ApplicationKey, Login, and Password) are used to obtain a token from the application for requests.

### Password reset

This connector doesn't reset passwords.

### Credential protection

Data protection can be ensured through:

- RSA encryption, configured in the `appsettings.encrypted.agent.json` file
- An Azure Key Vault safe

 | Attribute | Naming Convention for the Key in Azure Key Vault |
 | --- | --- |
 | ApplicationId | Connections--`<identifier>`--ApplicationId |
 | ApplicationKey | Connections--`<identifier>`--ApplicationKey |
 | BulkMaxOperation | Connections--`<identifier>`--BulkMaxOperation |
 | Login | Connections--`<identifier>`--Login |
 | Password | Connections--`<identifier>`--Password |
 | ServiceSupportBulk | Connections--`<identifier>`--ServiceSupportBulk |
 | Server | Connections--`<identifier>`--Server |

- A <b>cyberark</b> Vault able to store Active Directory's Login, Password, and Server.

See the [RSA Encryption](../../network-configuration/agent-configuration/rsa-encryption.md), [Azure Key Vault](../../network-configuration/agent-configuration/azure-key-vault.md), and [<b>cyberark</b>'s AAM Credential Providers ](../../network-configuration/agent-configuration/cyberark-application-access-manager-credential-providers.md)topics for additional information.

Protected attributes are stored inside a safe in <b>cyberark</b>, into an account whose identifier can be retrieved by Identity Manager from `*appsettings.<b>cyberark</b>.agent.json*`.

For example:

Replace code attributes enclosed with `<>` with a custom value before you enter the script in the command line.

```json
*appsettings.<b>cyberark</b>.agent.json*
{
  ...
  "Connections": {
    ...
    "SAPExportFulfillment": {
        "Login": "SAPExportFulfillment_<b>cyberark</b>Key",
        "Password": "SAPExportFulfillment_<b>cyberark</b>Key",
        "Server": "SAPExportFulfillment_<b>cyberark</b>Key"
    }
  }
}
```

