SCIM integration with OneLogin

Adding Forest Admin to OneLogin

You must be on a Forest Admin Pro plan to have access to this feature.

Supported features

  • Provisioning users from OneLogin to Forest Admin

  • Updating user role, permission level, and tags from OneLogin to Forest Admin: Enabling SCIM will disable user editing from Forest Admin.

  • Deleting user in Forest Admin when user is removed from Forest Admin app in OneLogin.

  • SCIM Groups are used to assign users to team.

Adding the Forest Admin app

Go to the Application tab and click "Add App"

In the search bar, look for SCIM and select "SCIM Provisioner with SAML (SCIM v2 Core)"

Authenticating OneLogin in Forest Admin

Name your app, then go to your Forest Admin project settings and enable the User provisioning feature: this will automatically generate a token that you will need to paste into your OneLogin app:

Add the following baseUrl and paste your token generated on Forest Admin:

  • SCIM Base URL: https://api.forestadmin.com/scim

Configuring the app

SCIM JSON Template: add the following:

{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:User",
    "urn:ietf:params:scim:schemas:extension:forest:2.0:User"
  ],
  "userName": "{$user.email}",
  "name": {
    "givenName": "{$user.firstname}",
    "familyName": "{$user.lastname}"
  },
  "emails": [
    {
      "value": "{$user.email}",
      "primary": true,
      "type": "work"
    }
  ],
  "urn:ietf:params:scim:schemas:extension:forest:2.0:User": {
    "permissionLevel": "{$parameters.permission_level}",
    "role": "{$parameters.role}",
    "tags": "{$parameters.tags}"
  }
}

Adding Forest Admin custom parameters

  • permissionLevel (string): should match exactly an existing permissionLevel in Forest Admin.

  • role (string): should match exactly an existing role in the project.

  • tags (optional string): key/value pairs, separated with a semicolon. ex: "regions:France,Italie;job:developer"

Managing mapping rules

Create mapping rules to automatically provide values to mandatory parameters role, and permissionLevel, and optionally tags. If you don’t create mapping rules, you will have to provide these values manually for each user provisioned.

Adding custom user attributes

You may want to add custom user attributes to base your mapping rules on. To do so, go in the "Custom User Fields" section of the Users tab.

Managing teams with SCIM groups

Groups allow you to create mapping rules between oneLogin roles and Forest Admin teams.

First, go to the Provisioning tab and on the Entitlement section, click on "Refresh" to fetch teams in OneLogin.

You can then create a rule for each role you want to map with an existing Forest Admin team.

When a role is added a removed from a user, it will be automatically added or removed to the corresponding Forest Admin team.

Last updated