> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iru.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SCIM Directory Integration with OneLogin

> Configure SCIM directory integration between OneLogin and Iru Endpoint. Automatically provision and deprovision users and groups via the SCIM protocol.

### About SCIM Directory Integration with OneLogin

SCIM Directory Integration with OneLogin in Iru Endpoint allows you to set up SCIM-based user directory synchronization between OneLogin and Iru Endpoint, enabling automatic user and group provisioning and deprovisioning.

### How It Works

The SCIM integration creates a secure connection between OneLogin and Iru Endpoint, enabling automatic synchronization of user and group data. When users or groups are added, modified, or removed in OneLogin, these changes are automatically reflected in Iru Endpoint through the SCIM protocol.

### Prerequisites

* Be sure to review the supported user and group attributes listed in the [SCIM Directory Integration](/en/endpoint/integrations/scim/scim-directory-integration#scim-schema-and-supported-attributes) article.

<Tabs>
  <Tab title="Iru Endpoint">
    ### Get the SCIM Token and API URL

    Complete these steps in Iru Endpoint first. You will need the SCIM access token and API URL when configuring OneLogin. For full details, see the [SCIM Directory Integration](/en/endpoint/integrations/scim/scim-directory-integration) article.

    <Steps>
      <Step title="Open Integrations">
        In Iru Endpoint, click your name at the bottom of the left navigation, then select **Integrations**.

        <Frame>
          <img src="https://mintcdn.com/iru/8BYPjuKZa-zyEEf_/assets/media/images/iru-nav-integrations.png?fit=max&auto=format&n=8BYPjuKZa-zyEEf_&q=85&s=e89fa7e9b81ac504a6f519608e10b8a3" alt="Screenshot of the account menu with Integrations option highlighted" width="562" height="1040" data-path="assets/media/images/iru-nav-integrations.png" />
        </Frame>
      </Step>

      <Step title="Discover Integrations">
        Click **Discover integrations** in the upper-right of the Integrations page.
      </Step>

      <Step title="Add SCIM Protocol">
        On the **SCIM protocol** tile, click **Add and configure**.

        <Frame>
          <img src="https://mintcdn.com/iru/ceHzuGddI7w_43xJ/assets/media/images/iru-add-configure-scim.png?fit=max&auto=format&n=ceHzuGddI7w_43xJ&q=85&s=c55030a21c30ef6f65dc90285d3c45d7" alt="Add new integration page with SCIM protocol tile and Add and configure button" width="2134" height="1284" data-path="assets/media/images/iru-add-configure-scim.png" />
        </Frame>
      </Step>

      <Step title="Start Configuration">
        Click **Get started**.
      </Step>

      <Step title="Name the Integration">
        Enter a unique name for the SCIM integration.
      </Step>

      <Step title="Generate Authentication Token">
        Click **Generate token**. The SCIM integration uses an HTTP authorization header with a Bearer Token.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-name.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=cf4df5d3d63147de7739024f71f94bf8" alt="Configure a SCIM user integration screen with name field and Generate token button" width="1898" height="1258" data-path="assets/media/images/iru-scim-name.png" />
        </Frame>
      </Step>

      <Step title="Copy the Token">
        Click **Copy token**. The token will not be visible again after you click Done. Store it securely, as you will need it in the **OneLogin** tab.
      </Step>

      <Step title="Confirm and Complete Setup">
        Confirm that you have copied the token by checking the box, then click **Done**. You will return to the **Integrations** page.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-copy-token.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=c31e71ca70b13bd8db22047685ff47ae" alt="Copy token and configure with your identity provider dialog with Copy token button" width="1912" height="1262" data-path="assets/media/images/iru-scim-copy-token.png" />
        </Frame>
      </Step>

      <Step title="Access Integration Details">
        Click the **ellipsis** on the SCIM directory integration you created.
      </Step>

      <Step title="View Details">
        Select **View Details**.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-view-details.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=f70aee81eba7ce75589cb220c68cce65" alt="Directory integrations list with SCIM integration and ellipsis menu showing View details, Rename, Rotate token, Delete" width="1162" height="542" data-path="assets/media/images/iru-scim-view-details.png" />
        </Frame>
      </Step>

      <Step title="Copy API URL">
        Copy the SCIM API URL (e.g. `https://subdomain.api.iru.com/api/v1/scim`). Your identity provider will require this. The URL displayed in your tenant may still show the `api.kandji.io` domain. The `api.kandji.io` version of the SCIM API URL will also work for this purpose.
      </Step>

      <Step title="Close Details">
        Click **Close**.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-copy-api-url.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=f826bc146ef440fff34093ffeb0202d6" alt="View user integration details modal with SCIM API URL and copy button" width="1258" height="804" data-path="assets/media/images/iru-scim-copy-api-url.png" />
        </Frame>
      </Step>

      <Step title="Switch to OneLogin Tab">
        Keep the token and API URL available, then switch to the **OneLogin** tab to create and configure the SCIM app integration.
      </Step>
    </Steps>
  </Tab>

  <Tab title="OneLogin">
    <Note>
      Complete the **Iru Endpoint** tab first to obtain the SCIM token and API URL. You will enter these in the steps below.
    </Note>

    ### Creating the SCIM Integration in OneLogin

    <Steps>
      <Step title="Access OneLogin Admin Console">
        Log into your OneLogin admin console. (example: [https://accuhive.onelogin.com/admin2](https://accuhive.onelogin.com/admin2))
      </Step>

      <Step title="Navigate to Applications">
        In the top navigation, hover over **Applications**.
      </Step>

      <Step title="Open Applications Menu">
        Click **Applications** in the dropdown menu.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-onelogin-applications.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=8ca857de3466adc9e5d40c800ec67cdc" alt="OneLogin top navigation with Applications menu" width="2566" height="1074" data-path="assets/media/images/iru-scim-onelogin-applications.png" />
        </Frame>
      </Step>

      <Step title="Add New Application">
        Near the top-right, click **Add App**.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-onelogin-add-app.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=99963ed4a1d5a859119fadeae9454bfb" alt="OneLogin Applications page with Add App button" width="3426" height="1222" data-path="assets/media/images/iru-scim-onelogin-add-app.png" />
        </Frame>
      </Step>

      <Step title="Search for SCIM Provisioner">
        In the text field, enter **SCIM Provisioner with SAML (SCIM v2 Enterprise)**.
      </Step>

      <Step title="Select SCIM Provisioner">
        Click on **SCIM Provisioner with SAML (SCIM v2 Enterprise)**.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-onelogin-scim-provisioner.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=5d3cf623664271105a1f1c79def9c5ff" alt="OneLogin Add App search with SCIM Provisioner with SAML option" width="2912" height="754" data-path="assets/media/images/iru-scim-onelogin-scim-provisioner.png" />
        </Frame>
      </Step>
    </Steps>

    ### Configuring SCIM Settings

    Once in the **SCIM Provisioner with SAML (SCIM v2 Enterprise)** application, use the following steps to configure the SCIM settings. The following steps include provisioning users and groups (roles).

    #### Application Information

    <Steps>
      <Step title="Update Display Name">
        (optional) Update the app **Display Name** to something like **Iru Endpoint SCIM Provisioner**
      </Step>

      <Step title="Configure Portal Visibility">
        (optional) Choose whether to make the app visible in the OneLogin portal.
      </Step>

      <Step title="Add Application Icon">
        (optional) Add an icon.
      </Step>

      <Step title="Add Description">
        (optional) Add a description.
      </Step>

      <Step title="Save Configuration">
        After completing the basic configuration, click **Save**.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-onelogin-basic-configuration.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=2637e3d6e3153924c13592ac97eed774" alt="OneLogin SCIM app basic configuration with Display Name and Save" width="2102" height="1878" data-path="assets/media/images/iru-scim-onelogin-basic-configuration.png" />
        </Frame>
      </Step>
    </Steps>

    #### Parameters

    <Steps>
      <Step title="Navigate to Parameters">
        Navigate to the **Parameters** page.
      </Step>

      <Step title="Add New Parameter">
        Click the add **(+)** button on the right.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-onelogin-new-parameter.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=be5c76e0a2874562499050834102bef3" alt="OneLogin Parameters page with add parameter button" width="2500" height="1348" data-path="assets/media/images/iru-scim-onelogin-new-parameter.png" />
        </Frame>
      </Step>

      <Step title="Enter Field Name">
        Enter **email.value** into the **Field name**.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-onelogin-parameter-email-value.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=9f395bf5c38ccdba8d74e7b8462985ee" alt="OneLogin new parameter with email.value field name" width="1102" height="882" data-path="assets/media/images/iru-scim-onelogin-parameter-email-value.png" />
        </Frame>
      </Step>

      <Step title="Save Parameter">
        Click **Save**.
      </Step>

      <Step title="Configure Parameter Value">
        Select **Email** from the Value dropdown.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-onelogin-parameter-set-email-value.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=e8df6e1ce066a4017fc033d132b331da" alt="OneLogin email.value parameter with Email value selected" width="1106" height="920" data-path="assets/media/images/iru-scim-onelogin-parameter-set-email-value.png" />
        </Frame>
      </Step>

      <Step title="Save Configuration">
        Click **Save**.
      </Step>
    </Steps>

    #### Configuration

    <Steps>
      <Step title="Navigate to Configuration">
        Navigate to the **Configuration** page.
      </Step>

      <Step title="Enter SCIM API URL">
        In the **SCIM Base URL** field, paste the SCIM API URL you copied from the **Iru Endpoint** tab (e.g. `https://subdomain.api.iru.com/api/v1/scim`). The `api.kandji.io` version of the SCIM API URL will also work for this purpose.
      </Step>

      <Step title="Enter Bearer Token">
        In the **SCIM Bearer Token** field, paste the token you obtained in the **Iru Endpoint** tab.
      </Step>

      <Step title="Enable API Connection">
        Click **Enable** to turn on the API Connection.
      </Step>

      <Step title="Save Configuration">
        Click **Save**.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-onelogin-main-config.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=188f3092a2bca393041768e5f7fa68c7" alt="OneLogin Configuration page with SCIM Base URL and Bearer Token fields" width="2068" height="3060" data-path="assets/media/images/iru-scim-onelogin-main-config.png" />
        </Frame>
      </Step>
    </Steps>

    #### Provisioning

    <Steps>
      <Step title="Access Provisioning Page">
        Go to the **Provisioning** page.
      </Step>

      <Step title="Enable Provisioning">
        Select the box to **Enable provisioning**.
      </Step>

      <Step title="Configure User Operations">
        Uncheck the boxes next to **Create user**, **Delete user**, and **Update user**.
      </Step>

      <Step title="Set Deletion Policy">
        For the option **When users are deleted in OneLogin, or the user's app access is removed...**, choose **Delete**.
      </Step>

      <Step title="Set Suspension Policy">
        For the option **When user accounts are suspended in OneLogin...**, choose **Suspend**.
      </Step>

      <Step title="Save Configuration">
        Now, in the top-right, click **Save** to keep the initial configuration.

        <Frame>
          <img src="https://mintcdn.com/iru/09oHsghqQ24xDtMY/assets/media/images/iru-scim-onelogin-provisioning-settings.png?fit=max&auto=format&n=09oHsghqQ24xDtMY&q=85&s=c96129db03a9d56823ccda43a0156509" alt="OneLogin Provisioning page with Enable provisioning and user operations" width="2078" height="1530" data-path="assets/media/images/iru-scim-onelogin-provisioning-settings.png" />
        </Frame>
      </Step>
    </Steps>

    ### Provisioning Users and Roles to Iru Endpoint

    Use the following steps to send users and OneLogin roles to Iru Endpoint via the SCIM integration.

    <Note>
      OneLogin roles are synonymous to groups in Iru Endpoint, and are assigned to the SCIM configuration. When users are assigned to roles in OneLogin, they are then pushed to Iru Endpoint. Additionally, any roles assigned to the SCIM app are pushed to Iru Endpoint as groups.
    </Note>

    #### Creating a Role

    <Steps>
      <Step title="Navigate to Users">
        In the top navigation, hover over **Users**.
      </Step>

      <Step title="Access Roles">
        In the dropdown menu, click **Roles**.
      </Step>

      <Step title="Create New Role">
        Click **New Role**.
      </Step>

      <Step title="Name the Role">
        Give the Role a name.
      </Step>

      <Step title="Assign Apps to Role">
        Select the apps that should be assigned to the role. In this case, we selected the SCIM app.
      </Step>

      <Step title="Save Role">
        Click **Save**.
      </Step>
    </Steps>

    #### Assigning Users to the Role

    <Steps>
      <Step title="Access Created Role">
        Click back into the role that was just created.
      </Step>

      <Step title="Navigate to Users">
        Click **Users**.
      </Step>

      <Step title="Create New Mapping">
        Under **Users Added Automatically**, click **New Mapping**.
      </Step>

      <Step title="Name the Mapping">
        Give the Mapping a name.
      </Step>

      <Step title="Configure Conditions">
        Create the conditions that meet your needs. For this example, choose **Group membership** as the criteria, but you can use other criteria like department.
      </Step>

      <Step title="Select Role Action">
        Under **Actions**, choose the role that should be applied.
      </Step>

      <Step title="Save Mapping">
        Click **Save**.
      </Step>
    </Steps>

    <Note>
      OneLogin only allows a user to be member of one group, so you can think of OneLogin groups like an attribute that describes the user similar to department or location. Use OneLogin roles if a user needs to be a member of more than one "group".
    </Note>

    For more information on Group provisioning, please see OneLogin's documentation [here](https://developers.onelogin.com/scim/create-app).

    <Warning>
      If desired, users can also be added to the SCIM apps manually from each user's record.
    </Warning>

    #### Adding a Rule to the SCIM App

    Use the steps below to push one or more roles (Iru Endpoint groups) to Iru Endpoint in the OneLogin SCIM app.

    <Steps>
      <Step title="Access Rules">
        In the SCIM app, click **Rules**.
      </Step>

      <Step title="Add New Rule">
        Click **Add Rule**.
      </Step>

      <Step title="Name the Rule">
        Give the rule a name.
      </Step>

      <Step title="Configure Action">
        Under **Actions**, choose **Set Groups in** from the first dropdown.
      </Step>

      <Step title="Select Mapping Source">
        Select **Map from OneLogin**.
      </Step>

      <Step title="Configure Role Mapping">
        In the **For each** field, choose **role** from the dropdown.
      </Step>

      <Step title="Set Role Value">
        In the **with value that matches** field, enter the SCIM Role to push to Iru Endpoint as a group.
      </Step>

      <Step title="Save Rule">
        Click **Save**.
      </Step>
    </Steps>

    ### Pushing Updates

    <Note>
      **Syncing**: User and group syncing is one-way, meaning the SCIM app will send user information to Iru Endpoint only when there is new or updated information to be sent. For this reason, a "Sync Now" option is not needed in the Iru Endpoint web app.
    </Note>

    If the SCIM app is updated in OneLogin, you will need to save the change and then use the **Reapply entitlement mappings**.

    <Steps>
      <Step title="Access More Actions">
        Hover over the **More Actions** menu.
      </Step>

      <Step title="Reapply Entitlement Mappings">
        Click on the **Reapply entitlement mappings** option.
      </Step>
    </Steps>
  </Tab>
</Tabs>
