Skip to main content

Configuring the Ardoq App with Okta

Set up Okta to create, update and deactivate Ardoq users automatically with SCIM.

L
Written by Luca Cataldi

Ardoq supports automatic user provisioning from Okta using the SCIM 2.0 standard. Once it's set up, Okta decides who has access to your Ardoq organization:

  • People you assign to the Ardoq app in Okta are created in Ardoq.

  • Changes to their name or email in Okta are copied to Ardoq.

  • People you unassign or deactivate in Okta lose access to Ardoq.
    ​

Before you start

  • You need administrator rights in both Okta and Ardoq.

  • The SCIM token page must be turned on for your Ardoq organization. In Ardoq, open Access control and look under Login and SSO. If you don't see SCIM token, contact your Customer Success Manager or support@ardoq.com and ask for SCIM provisioning to be enabled.

  • Have the address you use to open Ardoq at hand, for example https://acme.ardoq.com.

Note: Ardoq doesn't have a pre-built app in the Okta Integration Network (OIN). You create a custom app integration in Okta instead, which this article walks through.

Note: Ardoq's SCIM integration manages users only. Okta's Push Groups isn't supported yet, so leave it switched off. Keep managing group membership in Ardoq, or through SSO Attribute Mapping.
​

Step 1: Generate a SCIM token in Ardoq

The SCIM token is the password Okta uses to connect to Ardoq. Anyone who has it can manage the users in your organization, so keep it secret.

  1. In Ardoq, open Access control.

  2. Under Login and SSO, select SCIM token.

  1. Select Generate new.

  2. Copy the token right away. Ardoq only shows it once. You'll paste it into Okta in step 5.

Important: Generating a new token replaces the old one straight away. If Okta is already connected, it stops working until you paste the new token into Okta.

Important: A SCIM token expires 61 days after it was last used. Okta only contacts Ardoq when something changes for a user assigned to the app, so a quiet couple of months is enough for the token to expire. See the Troubleshooting section below.

Step 2: Work out your SCIM base URL

Take the address you use to open Ardoq and add /api/scim/v2 to the end. Use the address exactly as it appears in your browser, including any region part.

You open Ardoq at

Your SCIM base URL

https://acme.ardoq.com

https://acme.ardoq.com/api/scim/v2

https://acme.us.ardoq.com

https://acme.us.ardoq.com/api/scim/v2

Step 3: Create the Ardoq app in Okta

  1. Sign in to the Okta Admin Console.

  2. Go to Applications and Resources > Applications and select Create App Integration.

  3. Choose the sign-in method:

    • SAML 2.0 if this app will also sign people in to Ardoq. Follow Setting up Single Sign-on using SAML for the sign-in part.

    • SWA if you only want this app for provisioning. Use your Ardoq address as the app's login page URL.

Already have an Ardoq app in Okta? If people already sign in to Ardoq through a SAML app in Okta, add provisioning to that app instead: open it and continue from step 4. If your Ardoq sign-in uses an OpenID Connect app and its General tab has no Provisioning option, create a separate SWA app for provisioning. You can hide it from your users under General > App Settings > Application visibility.

  1. Give the app a name people will recognise, Ardoq, and finish the wizard.

  2. Open the Sign On tab. Under Credentials Details, set Application username format to Email, then Save. Ardoq identifies users by email address and rejects usernames that aren't email addresses.

Step 4: Turn on SCIM provisioning for the app

  1. Open the app's General tab.

  2. Under App Settings, select Edit.

  3. Set Provisioning to SCIM, then Save.

A Provisioning tab appears on the app.

Step 5: Connect Okta to Ardoq

  1. Open the Provisioning tab.

  2. Under Settings > Integration, select Edit.

  3. Fill in the fields:

Field

Value

SCIM connector base URL

Your SCIM base URL from step 2

Unique identifier field for users

userName

Supported provisioning actions

Tick Push New Users and Push Profile Updates. Leave Import New Users and Profile Updates and Push Groups unticked.

Authentication Mode

HTTP Header

Authorization

Paste the SCIM token from step 1. Okta adds the Bearer prefix itself.

  1. Select Test Connector Configuration. Okta should detect Create Users and Update User Attributes.


2. Close the test result and select Save.

Step 6: Choose what Okta does in Ardoq

  1. On the Provisioning tab, go to Settings > To App and select Edit.

  2. Enable:

    • Create Users

    • Update User Attributes

    • Deactivate Users

  3. Leave Sync Password off. People sign in to Ardoq through your SSO, not with a password from Okta.

  4. Select Save.

Step 7: Check the attribute mappings

Ardoq reads these attributes from Okta:

SCIM attribute

Required

Where it's set in Okta

Notes

userName

Yes

Application username format(step 3)

Must be an email address. Ardoq ignores upper and lower case.

displayName

Yes

To App attribute mappings

Ardoq refuses to create a user without it.

active

Set by Okta

Okta sends it automatically

Tells Ardoq whether the user can sign in.

roles

No

See step 8

Only used when the user is first created.

Okta also sends attributes such as given name, family name and email addresses. Ardoq accepts them and doesn't use them.

Check the display name mapping

Ardoq needs a display name to create a user. By default Okta sends the user's display name (user.displayName), which is often empty on Okta profiles.

If your users' Okta profiles have a display name filled in, keep the default.
If they don't, go to the Provisioning tab, then To App, find Display name (displayName) in the attribute mappings and change it to:

user.firstName + " " + user.lastName


Apply it on create and update, then Save.

Step 8: Set Ardoq roles from Okta (optional)

Okta can give each user an Ardoq role when it creates them in Ardoq. If you skip this step, new users get your organization's default role.

Important: Okta only sets the role when the user is first created in Ardoq. Changing the role in Okta later doesn't change it in Ardoq. Change roles in Ardoq instead, or have your SSO sign-in assign them (see Setting up Single Sign-on using SAML).

Add a role attribute to the app

  1. In the Okta Admin Console, go to Directory > Profile Editor and open the Ardoq app's user profile.

  2. Select Add Attribute and fill in:

Field

Value

Data type

string

Display name

Ardoq role

Variable name

ardoqRole

External name

roles.^[primary==true].value

External namespace

urn:ietf:params:scim:schemas:core:2.0:User

Enum

Define the four values from the table below

3. Save the attribute.
Set the role per person or per group when you assign them to the app (step 9), or map it from an attribute on your Okta user profiles.

The role must be one of these values:

Value

Ardoq role

admin

Admin

writer

Writer

reader

Reader

contributor

Contributor

Important: If Okta sends any other value, Ardoq rejects the user and Okta reports a provisioning error.


​Important: Okta can give each user an Ardoq role when it creates them in Ardoq. If you skip this step, new users get your organization's default role. That's Reader unless an Ardoq admin has changed it under Access control > Login and SSO > Login settings > Autoprovisioning settings.

Step 9: Assign people and check the result

  1. Open the app's Assignments tab.

  2. Select Assign > Assign to People or Assign > Assign to Groups, and choose who should have access to Ardoq.

Note: Assigning an Okta group to the app controls who gets provisioned. It doesn't create that group in Ardoq.

  1. For each person, Okta first checks whether they already exist in your Ardoq organization, by email address. If they do, Okta connects to the existing user instead of creating a second one. Otherwise it creates them.

  2. In Ardoq, go to Access control > User management > Users and check that the people appear with the role you expect.

To test that updates reach Ardoq, change someone's last name in Okta and confirm that their name changes in Ardoq.

After the first push, Okta keeps track of each person through the Ardoq user ID it got back, so later changes to their name or email update the same Ardoq user.

What happens when someone is removed

  • Unassigning someone from the app, or deactivating them in Okta, makes them inactive in Ardoq. They can no longer sign in to your Ardoq organization. Their role, group memberships, content and history stay as they were. Assign them to the app again to give them access back.

  • Deleting someone in Okta has the same effect in Ardoq. Okta deactivates a person before deleting them, and it never deletes users in Ardoq. To take someone out of your Ardoq organization entirely, unassign them in Okta first, then remove them in Ardoq. That removes their role, group memberships and permissions in your organization.
    ​

Troubleshooting

What you see in Okta

What it means

What to do

Error authenticating: Unauthorized

The SCIM token has expired (61 days without use) or was replaced by a newer one.

Generate a new token in Ardoq (step 1), paste it into Provisioning > Integration in Okta, and Save.

A 400 error mentioning displayName

Okta sent the user without a display name.

Map displayName as described in step 7.

A 400 error mentioning userName

The username Okta sent isn't an email address.

Set Application username format to Email (step 3).

A 400 error about a role value

The role isn't one of admin, writer, reader or contributor.

Fix the role values (step 8).

... is already associated with another org, and therefore isn't available for modification by this integration. or ... is not governed by your org ...

The person already has an Ardoq account that belongs to another company's organization.

The user with email ... is ungoverned.

The person's Ardoq account isn't linked to a company account yet.

Known limitations

  • Users only. Push Groups isn't supported yet.

  • No import into Okta. Okta's Import New Users and Profile Updates isn't supported yet.

  • Roles are set once. Okta only sets the role when it creates the user (step 8).

  • The username must be an email address.

  • Tokens expire 61 days after they were last used. Generate a new one if provisioning stops with Unauthorized.
    ​

Still stuck? Reach out through the in-app chat or email support@ardoq.com.

Did this answer your question?