Skip to main content
Version: 8.3

Set up user provisioning using SCIM

note

This functionality is available for Creatio 8.3.1 and later.

Keep Creatio users and roles in sync with your identity provider (IdP) without creating accounts by hand. The SCIM Integration app receives users and groups from the IdP using the SCIM 2.0 protocol, creates and updates Creatio users, and assigns roles based on IdP groups that an administrator reviews and approves.

Prerequisites:

  1. The SCIM Integration app is installed from Creatio Marketplace.
  2. System administrator permissions in Creatio.
  3. Administrator permissions in the IdP.
  4. OAuth 2.0 with the Creatio Identity Service is set up: the OAuth20IdentityServerUrl, OAuth20IdentityServerClientId, and OAuth20IdentityServerClientSecret system settings are filled out. Creating a SCIM profile registers an OAuth client for a technical user, which requires this setup. Learn more: Connect the Identity Service to Creatio.
  5. Single Sign-On is set up. Learn more: Single Sign-On.
Important

Custom business processes that work with users, contacts, or roles can affect SCIM provisioning. If your Creatio has such customizations, test provisioning and deprovisioning on a small pilot group before you roll out SCIM in production.

For Creatio .NET Framework 8.3.1 and 8.3.2

After you install the SCIM Integration app on Creatio .NET Framework 8.3.1 or 8.3.2, update the configuration files. Creatio .NET and Creatio .NET Framework 8.3.3 and later do not need these changes.

  1. Add the following section to the Terrasoft.WebApp\web.config file. We recommend placing it after the last <location> section and before the xssFilterConfig section.

    <location path="rest/scim/v2/Schemas">
    <system.web>
    <httpRuntime requestPathInvalidCharacters="&lt;,&gt;,*,%,&amp;,\,?" />
    </system.web>
    <system.webServer>
    <handlers>
    <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
    <add name="ExtensionlessUrlHandler-Integrated-4.0" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode" path="*" verb="*"/>
    </handlers>
    </system.webServer>
    </location>
  2. Add the PATCH verb to the PutDeleteUrlHandler handler in the Web.config file in the root folder of the loader application. Replace the following line:

    <add name="PutDeleteUrlHandler" path="rest/*" verb="DELETE,PUT" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" responseBufferLimit="0" />

    with this line:

    <add name="PutDeleteUrlHandler" path="rest/*" verb="DELETE,PUT,PATCH" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" responseBufferLimit="0" />

The general procedure is as follows:

  1. Create a SCIM profile.
  2. Set up the IdP application.
  3. Set up provisioning of users without groups (optional).
  4. Provision IdP groups to Creatio roles.

1. Create a SCIM profile​

A SCIM profile stores the setup of one SCIM integration. Use a separate profile for each independent setup, for example, for different environments, tenants, or IdPs.

  1. Open the SCIM Integration section. To do this, select the "Studio" workplace → SCIM Integration.
  2. Create a profile. To do this, click New. This opens the Initial Setup window.
  3. Change the profile name (optional) in the SCIM profile name field. Out of the box, the name is "SCIM Profile [N]." The name only identifies the setup in Creatio and does not affect provisioning.
  4. Copy the connection values from the Authorization block: SCIM base URL, Token endpoint, Client ID, and Client secret. To copy a value, click the copy button next to it. You need these values to set up the IdP application.
  5. Set up the IdP application as described in the next section.
  6. Open the profile settings. To do this, click Proceed to Settings in the window. If you changed the profile name, Creatio saves it at this step.

Each SCIM profile is linked to a technical user. Creatio uses the active OAuth integration of that technical user to authorize SCIM requests. The Authorization tab of the profile shows the profile name, the Profile is active switch, and the linked technical user. Use the switch to enable or disable SCIM processing for the profile. If the linked technical user is deleted, select another technical user on this tab.

2. Set up the IdP application​

  1. Create or select the SCIM provisioning application in the IdP.
  2. Set up OAuth client credentials using the values from the Creatio window.
  3. Enter the token endpoint and SCIM base URL from Creatio.
  4. Save the changes and test the connection if the IdP provides this option.

3. Set up provisioning of users without groups​

Creatio requires each user to have at least one role. Creatio creates a user in either of the following cases:

  • The user belongs to at least one IdP group that is already provisioned to a Creatio role.
  • The user has no group membership, and the user is provisioned to the default role automatically or manually.

To set up provisioning of users without groups, fill out the following settings on the Provisioning settings tab:

  • Default role for users without IdP group membership. The role that Creatio assigns to users without groups. If the default role is "All employees" and the user later receives membership in another provisioned role, Creatio removes the user from "All employees."
  • Provision to default role automatically. If the setting is enabled, Creatio provisions users without groups automatically. If it is disabled, an administrator provisions them manually. To do this, click Provision users to default role on the Provisioning settings tab.

How Creatio matches IdP users to existing users​

Creatio matches an IdP user to an existing Creatio user by the SCIM userName and the work email:

  • If userName and email match the same user, Creatio reuses that user.
  • If userName matches a user whose email is empty, Creatio reuses the user and populates the email from the IdP.
  • If userName matches one user and email matches another, provisioning fails because of a conflict. Resolve the conflict in Creatio or in the IdP and retry provisioning.
  • If no user matches, Creatio creates a new user.

When Creatio creates a new user, it also links the user to a contact. If the Match new users to contacts by email setting is enabled, Creatio looks for a contact by primary email and links it unless the contact is already linked to another user. Otherwise, Creatio creates a new contact. When user attributes change in the IdP, Creatio updates the user and the linked contact.

4. Provision IdP groups to Creatio roles​

Creatio does not apply IdP groups to roles automatically. An administrator reviews each group received from the IdP and provisions it explicitly.

  1. Open the profile and go to the Provisioning settings tab.

  2. Review the groups in the Groups awaiting provisioning list. For each group, do one of the following:

    • Select an existing role in the Map to existing role column. If exactly one role has the same name as the IdP group and is not mapped to another group, Creatio suggests it automatically.
    • Fill out the New Creatio role name and Parent of new Creatio role columns to create a new role. If no role matches, Creatio populates the new role name with the IdP group name.

    One IdP group can be mapped to one role only, and one role can be mapped to one IdP group within the profile. To populate the parent role for new groups faster, fill out the Default parent role for new IdP groups setting.

  3. Provision the groups. To do this, select the groups and click Provision to Creatio. To provision all groups at once, click Provision all groups.

As a result, Creatio creates or maps the roles, adds the group members to them, and creates the users who are eligible for provisioning. Provisioned groups appear in the Provisioned groups list. Users that Creatio could not provision appear in the Users failed to provision list. Retry provisioning for them after you resolve the issue.

IdP groups always reach Creatio as a flat list. To build a multi-level role structure, provision top-level groups first. Then set the Default parent role for new IdP groups setting to the parent role and provision its child groups. Repeat for each branch.

When a group is renamed in the IdP, the mapping stays linked to the same Creatio role, and Creatio keeps the role name. When a group is deleted in the IdP, Creatio removes the users from the mapped role but keeps the role. Users who lose their last provisioned role get the default role. Group changes do not change whether a user is active.

Troubleshoot SCIM provisioning​

The Provisioning logs tab records key provisioning events, for example, a user or group received from the IdP, provisioned to Creatio, updated, or deactivated.

  • Clicking New does not open the Initial Setup window. Check that OAuth 2.0 with the Creatio Identity Service is set up. Learn more: Connect the Identity Service to Creatio.
  • A group cannot be provisioned. Check that the parent role is specified for a new role, the new role name is unique, and the selected role is not mapped to another IdP group.
  • Some group members are not assigned. Check the Users failed to provision list and the Provisioning logs tab.
  • SCIM requests are not processed. Check that the Profile is active switch is enabled, the linked technical user exists, and its OAuth integration is active.
Supported SCIM endpoints

Resource

Endpoints

Users

GET /Users, GET /Users/{id}, POST /Users, PATCH /Users/{id}

Groups

GET /Groups, GET /Groups/{id}, POST /Groups, PUT /Groups/{id}, PATCH /Groups/{id}, DELETE /Groups/{id}

Discovery

GET /ServiceProviderConfig, GET /Schemas, GET /Schemas/{id}, GET /ResourceTypes, GET /ResourceTypes/{id}

GET /Users and GET /Groups support the filter parameter with the eq, and, or, and pr operators, as well as attributes and excludedAttributes. Users can be filtered by userName, emails.value, active, externalId, and meta.lastModified. Groups can be filtered by displayName, externalId, and meta.lastModified.


See also​

Single Sign-On

Just-In-Time User Provisioning