This parameter is not required to create valid embed requests, but Omni recommends setting it.
modelRoles parameter.
Syntax
Properties
An object containing connection ID and role pairs, formatted as
"<connection_id>": "<connection_role>". connection_role values must the name of a standard user role or the name of a custom user role that resolves to either a Viewer or Restricted Querier.RESTRICTED_QUERIER- Can create new content and view workbooks and dashboardsVIEWER- Can only view dashboards<CUSTOM_ROLE_NAME>- Abilities depend on the role’s included permissions
{"connection-id-1":"RESTRICTED_QUERIER", "connection-id-2":"CUSTOM_VIEWER"}Behavior
When a user creates an embed session, theconnectionRoles value on the latest request acts as the source of truth for that user’s connection access. This means:
- A role can be downgraded by a later request (e.g. from Restricted Querier to Viewer).
- A role can be removed entirely if the later request doesn’t mention the connection — either explicitly in
connectionRolesor implicitly in the connection backing the requestedcontentPath.
connectionRoles on every request.
Examples
The following example demonstrates what the URL encoded version ofconnectionRoles={"65b10d2a-473b-4486-92c8-0ba628c7d1cb":"RESTRICTED_QUERIER"} would be:
Example connectionRoles