OneLogin to JSM Assets

OneLogin to JSM Assets

Import OneLogin users into JSM Assets with OnLink

Use OnLink to import OneLogin user data into Jira Service Management (JSM) Assets and map OneLogin fields to Assets attributes, including Atlassian user attributes and manager object references.

Overview

This guide explains how to configure an OnLink import from OneLogin to JSM Assets. You will connect OnLink to OneLogin, create an Assets import configuration, define field mappings, test the import, and confirm the data is imported into the target Assets object type.

Prerequisites

  • OnLink is installed and available in Jira from Manage your apps.

  • You have access to the target JSM Assets schema and object type.

  • You have access to a OneLogin account with permission to create or view API credentials.

  • You have the OneLogin subdomain for your tenant.

  • You have a OneLogin API client ID and client secret. Follow the OneLogin API credential setup guide: Working with API credentials.

Connect OnLink to OneLogin

First, create the OneLogin connection in OnLink.

  1. Open Jira, then go to Manage your apps.

  2. Open the OnLink app.

  3. Select the Connections tab.

  4. Click Add or Add connection.

  5. Select Other Asset Sources.

  6. Select OneLogin.

  7. Enter the connection details described below.

image-20250708-160051.png

OneLogin connection fields

Field

Value

Field

Value

API URL

Enter your OneLogin API URL. Replace subdomain with your OneLogin subdomain.

Client ID

Enter the client ID from your OneLogin API credentials.

Client Secret

Enter the client secret from your OneLogin API credentials.

Set up the Assets import configuration

Next, create the base Assets import configuration. Review the setup guide: Assets import configuration.

After the base configuration is created, open OnLink from Manage your apps and configure the OneLogin source and field-level mappings.

Configure the OneLogin importer

Use the following procedure to configure the importer.

  1. Enter a descriptive name for the mapping.

  2. Set the source system to OneLogin.

  3. Confirm the Asset Schema. OnLink pre-fills this value from the JSM Assets schema where you started the configuration.

  4. Select the target Object Type within the schema.

  5. Select the schedule frequency for automated production runs.

  6. Add the attribute mappings. Use the mapping examples below as a starting point.

Mapping examples

All fields available in OneLogin’s Get User API are available for mapping.

User mapping

Use this mapping to import OneLogin users into a JSM Assets user object type.

key:id=ID map:firstname=First Name map:lastname=Last Name map:email=Email map:email=Atlassian Account ID map:manager_user_id=ManagerObject|id=${manager_user_id}

Mapping reference

Use the following reference to understand each mapping entry.

Mapping item

Purpose

Notes

Mapping item

Purpose

Notes

key:id=ID

Uses the OneLogin id value as the unique key for the Assets object.

Required. This lets OnLink update existing records instead of creating duplicates.

map:firstname=First Name

Maps the OneLogin firstname field to the Assets attribute First Name.

Use the exact Assets attribute name from your object type.

map:lastname=Last Name

Maps the OneLogin lastname field to the Assets attribute Last Name.

Use the exact Assets attribute name from your object type.

map:email=Email

Maps the OneLogin email field to the Assets attribute Email.

Use this when you need to store the email address as text.

map:email=Atlassian Account ID

Maps the OneLogin email address to a JSM Assets user attribute named Atlassian Account ID.

Atlassian Account ID must be an Assets attribute of type User. OnLink looks up the Atlassian user by email address.

image-20250708-160750.png

map:manager_user_id=ManagerObject|id=${manager_user_id}

Maps the OneLogin manager user ID to a referenced manager object.

ManagerObject is a self-referencing object attribute. This is used because a manager is also a user in OneLogin. The referenced manager object is matched by its id value.

Test and validate the import

OnLink processes data in two separate steps: Get Data and Import Data.

  1. Click Get Data to pull records from OneLogin into OnLink staging.

  2. Open the job logs and wait for the message: No more pending records. Data will be imported on next Import run.

  3. Click Import Data to create or update objects in JSM Assets.

  4. Review the target object type in JSM Assets and confirm that objects, attributes, user fields, and manager references were imported as expected.

Production runs are fully automated based on the schedule selected in the importer configuration.

image-20240318-045922.png