Skip to main content

kobana dashboards dashboard-users

Commands of kobana dashboards dashboard-users. Every global option (Global options) applies here.

CommandHTTPDescription
dashboard-users workspacesGET /v1/dashboard_users/{id}/workspacesGet member workspace access
dashboard-users workspaces updatePUT /v1/dashboard_users/{id}/workspacesSet member workspace access
dashboard-users listGET /v1/dashboard_usersList dashboard users
dashboard-users createPOST /v1/dashboard_usersInvite dashboard user
dashboard-users updatePUT /v1/dashboard_usersCreate or update a dashboard user
dashboard-users getGET /v1/dashboard_users/{id}Get dashboard user
dashboard-users deleteDELETE /v1/dashboard_users/{id}Remove dashboard user
dashboard-users resendPOST /v1/dashboard_users/{id}/resendResend member invitation

dashboard-users workspaces​

Get member workspace access

kobana dashboards dashboard-users workspaces [ID] [OPTIONS] [COMMAND]

GET /v1/dashboard_users/{id}/workspaces

Lists every workspace of the organization, flagging the ones the member reaches — also the list of what can be granted.

Path arguments: id

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
200Workspaces of the organization with the member access.
404Resource not found in the current organization.

dashboard-users workspaces update​

Set member workspace access

kobana dashboards dashboard-users workspaces update [ID] [OPTIONS]

PUT /v1/dashboard_users/{id}/workspaces

Replaces the member set of workspaces. Nobody changes their own access (400), only an owner changes an owner access, and only an owner grants or revokes a workspace they cannot open themselves (403). A machine token may grant any workspace but never changes an owner access. Removing the last owner of a workspace answers 403.

Path arguments: id

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
workspace_idsarray<string (uuid)>yesThe final set of workspaces the member should reach. Removed ones are paused, not deleted.

More fields and nested objects: kobana schema dashboards.dashboard-users.workspaces.update.

Responses

HTTPDescription
200Workspaces of the organization with the member access.
400Request body failed validation.
404Resource not found in the current organization.

dashboard-users list​

List dashboard users

kobana dashboards dashboard-users list [OPTIONS]

GET /v1/dashboard_users

Returns a paginated list of dashboard users (team members) for the current organization.

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
searchstringnoText search by name or email.
statusstringnoFilter by status: all (default), active, pending_invitation or suspended. Values: all, active, pending_invitation, suspended.
rolestringnoFilter by users that have the given role (role slug).

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
200Paginated list of dashboard users.
404Resource not found in the current organization.

dashboard-users create​

Invite dashboard user

kobana dashboards dashboard-users create [OPTIONS]

POST /v1/dashboard_users

Invites a new member to the organization team. email and at least one role in role_ids are required. The user receives an email invite and starts with pending_invitation status.

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
emailstring (email)yesEmail of the user to invite.
role_idsarray<string (uuid)>yesList of role UUIDs (team_roles) to assign to the user. Must contain at least one item.
namestringnoUser name (optional — may be filled in by the user on first login).
external_idstringnoExternal user identifier, stored as an attribute of the member. It does not define the user identity: that is always resolved by email.
permissionsarray<string>noAdditional ad-hoc permissions (on top of those inherited from roles). Accepts the same permission slugs.
custom_metadataobjectnoArbitrary client-defined metadata (key/value).

More fields and nested objects: kobana schema dashboards.dashboard-users.create.

Responses

HTTPDescription
201User invited.
400Request body failed validation.
404Resource not found in the current organization.
422Invalid data. With code IDENTITY_CONFLICT, the given external_id is the identifier of another identity, with a different email.

dashboard-users update​

Create or update a dashboard user

kobana dashboards dashboard-users update [OPTIONS]

PUT /v1/dashboard_users

Looks the user up by id, public_id, external_id or email — the last one is unique per organization. If found, updates it; otherwise creates it and returns 201. When it updates, with a person token, that person must have access to every workspace the member works in (or be an organization owner); otherwise 403.

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
emailstring (email)noUser's email. Besides being a resource field, it doubles as the natural lookup key.
namestringnoUser name (optional — may be filled in by the user on first login).
external_idstringnoExternal user identifier, stored as an attribute of the member. It does not define the user identity: that is always resolved by email.
role_idsarray<string (uuid)>noList of role UUIDs (team_roles) to assign to the user. Must contain at least one item.
permissionsarray<string>noAdditional ad-hoc permissions (on top of those inherited from roles). Accepts the same permission slugs.
custom_metadataobjectnoArbitrary client-defined metadata (key/value).
idstring (uuid)noRecord UUID. Used only to locate it — never written.
public_idstring (uuid)noPublic UUID of the record, used to locate it.

More fields and nested objects: kobana schema dashboards.dashboard-users.update.

Responses

HTTPDescription
200Record updated.
201Record created.
400Request body failed validation.
404Resource not found in the current organization.
422Invalid data. With code IDENTITY_CONFLICT, the given external_id is the identifier of another identity, with a different email.

dashboard-users get​

Get dashboard user

kobana dashboards dashboard-users get [ID] [OPTIONS]

GET /v1/dashboard_users/{id}

Path arguments: id

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
200Dashboard user detail.
404Resource not found in the current organization.

dashboard-users delete​

Remove dashboard user

kobana dashboards dashboard-users delete [ID] [OPTIONS]

DELETE /v1/dashboard_users/{id}

Removes the dashboard user from the organization. Irreversible — the user must be invited again to regain access. With a person token, that person must have access to every workspace the member works in (or be an organization owner); otherwise 403.

Path arguments: id

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
200User removed.
404Resource not found in the current organization.

dashboard-users resend​

Resend member invitation

kobana dashboards dashboard-users resend [ID] [OPTIONS]

POST /v1/dashboard_users/{id}/resend

Re-sends the invitation e-mail, with a fresh sign-in link, to a member whose invitation is still pending. Capped at 5 e-mails per hour per recipient (429 above that).

Path arguments: id

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
200Invitation re-sent.
404Resource not found in the current organization.
422The member has no pending invitation (INVALID_STATUS).
502The e-mail could not be sent (EMAIL_ERROR).