Skip to main content

kobana dashboards portal-user-mappings

Get portal user mapping

Commands of kobana dashboards portal-user-mappings. Every global option (Global options) applies here.

CommandHTTPDescription
portal-user-mappingsGET /v1/portal_user_mappingsGet portal user mapping
portal-user-mappings updatePUT /v1/portal_user_mappingsMap entity to portal users
portal-user-mappings deleteDELETE /v1/portal_user_mappingsRemove portal user mapping

portal-user-mappings​

Get portal user mapping

kobana dashboards portal-user-mappings [OPTIONS] [COMMAND]

GET /v1/portal_user_mappings

The entity that feeds the workspace portal users (mapping, null when none, with the last sync outcome) and the entities that can be mapped, with their fields.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The mapping.
404Resource not found in the current organization.

portal-user-mappings update​

Map entity to portal users

kobana dashboards portal-user-mappings update [OPTIONS]

PUT /v1/portal_user_mappings

Maps an entity: one portal user per e-mail of its records, with the tenant ID taken from a field. Replaces the previous mapping and syncs right away (returns stats); later syncs of the entity keep the users current.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
entity_type_idstring (uuid)yesThe entity whose records become portal users.
tenant_id_field_keystringyes
email_field_keystringyes
name_field_keystringno

More fields and nested objects: kobana schema dashboards.portal-user-mappings.update.

Responses

HTTPDescription
200The saved mapping and the sync outcome.
400Request body failed validation.
404Resource not found in the current organization.
422Invalid entity or field (e.g. an entity that syncs on access).

portal-user-mappings delete​

Remove portal user mapping

kobana dashboards portal-user-mappings delete [OPTIONS]

DELETE /v1/portal_user_mappings

Stops syncing; users already created stay.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Mapping removed (deleted: false when there was none).
404Resource not found in the current organization.