Skip to main content
POST
Generate embedded SSO session

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Body

application/json
contentPath
string
required

Path to the Omni content to open, such as /dashboards/abc123. See the contentPath parameter reference for valid starting pages.

Minimum string length: 1
Example:

"/my"

externalId
string
required

External identifier for the user, from your system. Cannot be empty. See the externalId parameter reference for more information.

Minimum string length: 1
Example:

"user-123"

name
string
required

Display name for the user. Cannot be empty. See the name parameter reference for more information.

Minimum string length: 1
Example:

"Blob Ross"

accessBoost

If true, enables AccessBoost for the embedded dashboard. Requires AccessBoost to be enabled for non-administrators in Settings > Content permissions.

Available options:
true,
false
Example:

true

branch
string

Accepted for compatibility. This endpoint does not apply the branch to the session.

connectionRoles
object

Map of connection IDs to base or custom role names, setting the level of access embed users have to the connection's models. Invalid or disallowed roles are ignored. See the connectionRoles parameter reference for accepted role values and omission behavior.

Example:
customTheme
object

Custom dashboard theme properties. Values must be a valid theme property. See the customTheme parameter reference for more information.

customThemeId
string

The ID of a saved dashboard theme. See the customThemeId parameter reference for more information.

email
string

Optional embed user email address. An empty string is treated as omitted; non-empty values must be email-shaped. See the email parameter reference for its effect on existing email-only users.

entity
string

Alphanumeric identifier for the user group, used to associate the embed user with a shared entity folder. See the entity parameter reference for more information.

Maximum string length: 64
entityAiCreditLimit
string

Requires entity. The AI credit cap for the specified entity. Send a non-negative number as a string, or unlimited (case-insensitive). An empty string is treated as omitted.

See the entityAiCreditLimit parameter reference for more information.

entityFolderContentRole
enum<string>

Content role for the embed user's shared entity folder. See the entityFolderContentRole parameter reference for role definitions.

Available options:
,
MANAGER,
EDITOR,
VIEWER,
NO_ACCESS
entityFolderGroupContentRole
enum<string>
default:VIEWER

Content role for the entity group's shared entity folder. Defaults to VIEWER if unspecified. See the entityFolderGroupContentRole parameter reference for more information.

Available options:
,
MANAGER,
EDITOR,
VIEWER,
NO_ACCESS
entityFolderLabel
string

Requires entity. Label for the embed user's entity folder. See the entityFolderLabel parameter reference for more information.

Maximum string length: 64
entityGroupLabel
string

Requires entity. Label for the embed entity group. See the entityGroupLabel parameter reference for more information.

Maximum string length: 64
filterSearchParam
string

Filter URL search parameter to add to the contentPath. See the filterSearchParam parameter reference for the value format.

groups
string[]

Optional list of non-entity group names to assign to the user. Entity-group membership is managed by the entity URL parameter.

Example:

Level of link access for the embed user. See the linkAccess parameter reference for accepted values.

mode
enum<string>

Access mode for the embed session:

  • APPLICATION enables Create mode
  • SINGLE_CONTENT embeds a single dashboard, workbook, or app

See the mode parameter reference for more information.

Available options:
,
APPLICATION,
SINGLE_CONTENT
modelRoles
object

Map of model IDs to base or custom role names, overriding connectionRoles. Invalid or disallowed roles are ignored. See the modelRoles parameter reference for more information.

nonce
string

Accepted for compatibility, but not used by this endpoint. Replay protection applies to signed-URL login instead. See the nonce parameter reference for more information.

Required string length: 32
preserveEntityFolderContentRole

If true, retains the embed user's existing entity folder content role instead of applying the role from this request. See the preserveEntityFolderContentRole parameter reference for more information.

Available options:
true,
false
sdk
string

Optional SDK telemetry marker used for Omni's internal tracking. Has no effect on the created session.

Maximum string length: 64
signature
string

Accepted for compatibility, but this endpoint authenticates with an Organization API key, not this signature.

Minimum string length: 32
timezone
string

Accepted for compatibility, but this endpoint does not apply the timezone to the session. See the timezone parameter reference, which applies to signed-URL embed login instead.

uiSettings
object

Embed UI settings. Invalid values are ignored. See the uiSettings parameter reference for more information.

userAttributes
object

Optional user attributes for row-level security. Values are a string, a number, or an array of strings/numbers. Numbers are converted to strings on receipt, so send anything beyond the JSON safe integer range (2^53 - 1) as a string or it loses precision before Omni sees it.

See the userSettings parameter reference for more information.

Example:

Response

Session token generated

membershipId
string
required

Membership ID of the embed user the session logs in as. This is the same ID used by the List and retrieve embed users endpoints.

sessionId
string
required

Session ID to use for embedding Omni content

userId
string
required

Omni user ID of the embed user the session logs in as. This ID is created on the user's first request with a given externalId, and reused on later requests.