Skip to main content
Version: v2.0.4

SCIM with OneLogin

1 Prerequisite

2. Create new application in OneLogin

  1. After logging into OneLogin with admin account, click Administration to navigate to admin portal: Image

  2. Go to Applications under Applications menu: Image

  3. Click on Add App to add new application: Image

  4. Search for SCIM and select application with SCIM v2 Core: Image

  5. Change the DisplayName, add Icon or Description if needed. Then click Save to apply changes: Image

  6. Select Configuration tab and set up connection:

    1. SCIM base URL: This is pointing to your deployed SCIM service:
      1. Format: {domain name}/services/scim/v2
    2. Custom Headers: This requires application/scim+json as Content-Type.
    3. SCIM Bearer Token: The API key to interact with SCIM service: Retrieve Your SCIM API Key
    4. SCIM JSON Template: You have to define the template where fields you desire to send to SCIM service are included. Since OneLogin not handled the externalId correctly with your current SCIM service, you need to provide it explicitly.
    {
    "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
    "userName": "{$parameters.scimusername}",
    "externalId": "{$user.id}",
    "name": {
    "givenName": "{$user.firstname}",
    "familyName": "{$user.lastname}"
    },
    "emails": [
    {
    "value": "{$user.email}",
    "primary": true,
    "type": "work"
    }
    ]
    }

Image 7. Click Save and once the connection is set up successfully, API Status will be Enabled: Image

3. Enable provisioning for OneLogin application

  1. Select Applications under Applications menu to see all available applications. Then select our created application: Image
  2. Navigate to Provisioning tab, then check Enable provisioning, Create user, Delete user, Update user and keep others as default: Image

4. (Optional) Enable group provisioning for OneLogin application

  1. Select Applications under Applications menu to see all available applications. Then select our created application: Image
  2. Navigate Parameters tab, click on Group field: Image
  3. Check Include in User Provisioning and then Save to apply changes: Image

5. Create a user

  1. Select Users under Users menu, all available users listed, then select New User to add user: Image
  2. Add First name, Last name, Email, Username then click Save to create user: Image
  3. New created user should be listed: Image

6. Create a role

Users in OneLogin can be only assigned to application through mapping with roles. You need to create a new role in order to assign new user to your created application.

  1. Select Roles under Users menu, click New Role: Image
  2. Add a name for role, select our application and click Save to create role: Image

7. Assign new user to created role

  1. Select your created role listed in Roles (under Users menu): Image
  2. Select Users tab, and find for your created user: Image
  3. Click Check then Add to Role: Image
  4. User will get listed under Users Added Manually, then Save to apply changes: Image

8. Add rule to your application

  1. Go to our application listed under Applications menu → Applications. Then select Rules tab and click Add Rule: Image
  2. Add Name, select Actions as Set Groups in SCIM, check Map from OneLogin, select for each role with value match -*. Then Save to apply changes. This below configuration example will set all roles defined in OneLogin as SCIM groups: Image
  3. Navigate to Users tab and select Reapply entitlement mapping under More Actions: Image

9. Provision user on demand

  1. Navigate to Users tab of our application, there will be a list of users (including the users that you assigned to role that mapping to SCIM service). Those created users will initially have Provisioning State as Pending: Image
  2. Click on Pending text, there will be a dialog to approve the provision. Click on Approve: Image
  3. User that got successfully provisioned will have green mark in Provisioning State: Image

10. Verify user is created in AlphaSense

Navigate to Additional Guides and follow the guide to check: Verify User is Created in AlphaSense