Skip to main content

Portal user mapping

The entity that feeds the portal users: each of its records becomes a user, by e-mail, with the tenant taken from a field. update replaces the mapping and syncs right away; delete stops syncing but keeps the users already created.

CommandHTTPDescription
portal-user-mappings listGET /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

Examples​

--params carries query, path and header parameters (id, page, filters, X-Workspace-Id); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.

# Get portal user mapping
kobana dashboards portal-user-mappings list

# Map entity to portal users
kobana dashboards portal-user-mappings update \
--json '{"entity_type_id": "ENTITY_ID", "tenant_id_field_key": "cnpj", "email_field_key": "email", "name_field_key": "nome"}'

# Remove portal user mapping
kobana dashboards portal-user-mappings delete --dry-run

Next steps​