Skip to main content
Altorney Docs

Connecting with an OAuth2 client

The recommended way to connect Relativity: create an OAuth2 client in Relativity, give its context user the right permissions, and enter the client ID and secret.

An OAuth2 client is a set of machine credentials that Relativity issues for integrations like this one. Relativity generates a client ID and a client secret, and Altorney uses them instead of signing in as a person. Altorney recommends this method for two reasons. The credentials do not expire under a password policy, and two-factor authentication does not get in the way. Those are the two things that most often take a service-account connection offline.

A Relativity administrator creates the client in Relativity. Entering it in Altorney then takes a minute.

What the context user needs

An OAuth2 client acts on behalf of a context user: a Relativity user chosen when the client is created. Altorney can see and do only what that user's permissions allow. So the context user must hold the same permissions a service account would.

Grant them through the group the context user belongs to:

  • Instance-level permissions are set from the Relativity main panel. Open the hamburger menu, select Instance Details, then Manage Permissions.
  • Workspace-level permissions are set from the workspace panel: Admin > Workspace details > Manage Workspace Permissions.

The Relativity permissions reference shows which permission sets your situation needs, and Instance-level permissions explains each instance-level feature and object permission.

The second detail is lower in the same Features list. Object Security is a separate section in the left menu.

Creating the OAuth2 client in Relativity

These steps happen in Relativity, not in Altorney.

  1. Create or choose the Relativity user the client will act as. Use an account kept for this integration rather than a person's own login, and add it to a group that holds the permissions listed in the Relativity permissions reference.
  2. Open the Relativity main panel and go to Authentication > OAuth2 client.
  3. Create a new OAuth2 client, and give it a name that identifies it as the Altorney integration.
  4. Set the Grant Type to Client Credentials.
  5. Set the Access Token Lifetime to 60 minutes.
  6. Set the context user to the account from step 1.
  7. Save. Relativity shows you a Client ID and a Client Secret.

Copy both somewhere safe for the next few minutes. Relativity does not show the secret again once you navigate away, and Altorney does not display it back to you either. If it is lost, the only option is to generate a new one.

Treat the client secret like a password. Send it to whoever is doing the Altorney setup through your firm's approved channel for credentials, not in an ordinary email or chat message. Delete it once the connection is confirmed.

The connection dialog in Altorney links to Relativity's own guidance on this. The text "To create an OAuth client, please follow the steps in the" is followed by a Relativity Documentation link.

Entering it in Altorney

  1. Go to Relativity in the left menu and stay on the Instances tab.

  2. Select Connect New Instance. The Relativity Instance Configuration dialog opens.

  3. Set Authorization Type to OAuth. The client ID and secret fields replace the email and password fields, and the dialog shows a reminder about grant type, token lifetime and context-user permissions.

  4. Enter a Name for the instance and its Relativity URL.

  5. Set Instance does not have Elasticsearch, which sits above the OAuth fields, as your Relativity administrator advises. For a RelativityOne address, Altorney clears and locks it for you.

  6. Paste the client ID into Client ID and the client secret into Client Secret. Once you start typing the secret, an eye icon lets you check what you pasted.

OAuth selected. The dialog specifies Client Credentials and a 60-minute access-token lifetime; both credential fields are empty.

  1. Select Confirm Credentials. If it succeeds, Altorney shows "You have successfully connected to Relativity. Please click Save to store these credentials."
  2. Select Save.

If it fails, you see "The connection to Relativity failed. Please check your URL and credentials and try again. Error: " with Relativity's own explanation after it. Pass that explanation to your Relativity administrator.

When it does not connect

What you seeWhat it usually means
The connection fails outrightThe client ID or secret has a stray character, the grant type is not Client Credentials, or the address is not the environment's site address.
It connects, but no workspaces appear in a case"There was an error loading the workspaces. Please check your instance configuration and try again." The context user cannot see any workspace. Check that its group has Workspace - View and is assigned to the workspaces you need.
Clients do not load"There was an error getting clients from Relativity. If you are planning to allow Altorney to manage Relativity Users then you will need to resolve this." The context user is missing Client - View.
A permission error for one workspaceRelativity replies "You do not have permissions to perform this action for workspace {workspace ID}." The context user has no access to that workspace's audits.
"Relativity is temporarily limiting requests. Please try again shortly."Relativity is limiting the client's requests. The credentials are fine, so wait and try again. See Troubleshooting.

Why Altorney recommends this method over a service user

OAuth2 clientService user
Password expiryNothing expires. The secret lasts until someone deliberately rotates it.Every password-policy cycle can silently break the connection.
Two-factor authenticationNot affected, because the client does not sign inMust be turned off for that account, which some firms do not allow
Risk if exposedLimited to one integration, and can be revoked on its ownAn account someone could also sign in with
TraceabilityAppears in Relativity as its own named clientAppears as ordinary user activity

Both methods give you exactly the same integration once connected. The difference is how much maintenance it needs afterward.

Good to know

  • You can move an existing connection to OAuth without starting again. Edit the instance on the Instances tab, switch Authorization Type to OAuth, enter the client ID and secret, then confirm and save. Cases stay mapped to their workspaces.
  • Rotating the secret in Relativity does not update Altorney. Edit the instance and paste the new secret, or the Status column changes to Failed at the next attempt.
  • Saved searches used for the burndown and review-status reports must be visible to the context user. Either make the saved search public, or set the integration's account as its owner. See Saved search access.
  • The context user's permissions limit everything Altorney can do. If a case is not receiving audits, or accounts are not being created, check them against the Relativity permissions reference before you look in Altorney.

On this page