Skip to content
Joan Help

Provision and manage users from OneLogin

Joan uses a System for Cross-Domain Identity Management (SCIM) to enable the automatic provisioning of users from OneLogin. When enabled, all user management will be done only in OneLogin and disabled on Joan's side.

1. Enable SCIM integration in MyJoan

  1. Go to the user directory and click SCIM.
  2. In the window that opens, enable the integration.
  3. Generate a new token. You will use it to authenticate the connection between OneLogin and Joan.
MyJoan Integrations > SCIM page with Enable SCIM Provisioning switched on and the Secret token field with the Regenerate button

2. Create a new application in your OneLogin account

  1. On the Applications subpage, search for "scim".
  2. Select SCIM Provisioner with SAML (SCIM v2 Enterprise). This is a generic SCIM integration application provided by OneLogin.
OneLogin Find Applications search for "scim", with SCIM Provisioner with SAML (SCIM v2 Enterprise) in the results
  1. Enter the application display name (e.g. Joan Integration) and click Save.
OneLogin Add SCIM Provisioner with SAML (SCIM v2 Enterprise) page with the display name "Joan Integration" and the Save button

A new application is created. In the next steps, you configure it to connect to your Joan account.

3. Configure Joan SCIM OneLogin application

  1. Go to the Configuration subpage of the new application.
  2. Enter the following values:

SCIM Base URL: https://portal.getjoan.com/api/scim/v2
SCIM Bearer Token: copy it from Joan SCIM configuration page.
SCIM JSON Template:

{
  "schemas": [
    "urn:scim:schemas:core:2.0"
  ],
  "active": "{$user.status}",
  "userName": "{$user.email}",
  "name": {
    "givenName": "{$user.firstname}",
    "familyName": "{$user.lastname}"
  },
  "externalId":"{$user.external_id}",
  "userType":"{$user.custom_fields.userType}"
}

All fields, apart from the "userType" are mandatory. A "userType" field is used to properly map roles from your OneLogin directory to Joan. It helps you automatically manage roles and permissions in your Joan account. If the "userType" field is not included or empty all created users will have a default "User" role assigned in your Joan account.

Currently supported Joan account roles:

  • User
  • Office Manager
OneLogin Configuration tab with the SCIM Base URL, SCIM JSON Template and SCIM Bearer Token fields highlighted
  1. Click Save.

To sync roles automatically from OneLogin, continue with step 3a below. If not, continue with step 4.

3a. [Optional] Configure userType custom field

To sync roles automatically with Joan, configure the mappings in OneLogin as follows.

a. Create a new Custom User Field

  1. Go to Users > Custom User Fields and click New User Field.
OneLogin Users menu open with Custom User Fields highlightedOneLogin Custom User Fields page with the New User Field button highlighted
  1. Enter these values:
    Name: userType
    Shortname: userType
  2. Click Save.
OneLogin New User Field dialog with Name and Shortname both set to userType

b. Add a new userType application parameter

  1. Go to Applications and select the Joan integration you created.
  2. In the left menu, click Parameters, then click + to add a new one.
OneLogin application Parameters tab with the + button for adding a parameter
  1. In Field name, type "userType" and tick Include in SAML assertion.
  2. Click Save.
OneLogin New Field dialog: Field name userType, Include in SAML assertion ticked, Save
  1. Edit the new parameter. For Value, select the custom user field "userType" you created.
  2. Click Save.
OneLogin Edit Field userType dialog with Value set to userType (Custom) and Include in SAML assertion ticked

c. Create mapping

Now map your OneLogin roles to Joan roles. Joan currently supports the following account roles:

  • User
  • Office Manager

All users from OneLogin get the "User" role by default, so you only need one mapping, for "Office Manager".

  1. Go to Users > Mappings and create a new mapping.
OneLogin Users > Mappings page with the New Mapping button highlighted
  1. In the Actions dropdown, select Set userType and set the mapping to "Office Manager".
  2. Click Save.
OneLogin mapping with the condition Roles include Office Manager, the action Set userType to Office Manager, and Save

4. Enable integration

  1. Go to Configuration > API Connection and click Enable. The API Status changes to green/Enabled.
OneLogin Configuration tab, API Connection section with the Enable button
  1. Go to the Provisioning subpage and make sure the following checkboxes and values are set:
OneLogin Provisioning tab with Enable provisioning and Create user, Delete user and Update user ticked

You can now start adding users. They sync automatically with your Joan account.

If you encounter any issues, please contact support@getjoan.com.

Was this helpful?