Portal users
The people who sign in to the portal on behalf of a tenant (the tenant_id). create invites a user (invite create is the same route under a verb name), resend sends the invitation or verification again, email-preview shows the e-mail without sending it, and activity get / activity timeline get return sign-ins and visited pages.
| Command | HTTP | Description |
|---|---|---|
portal-users list | GET /v1/portal_users | List portal users |
portal-users create | POST /v1/portal_users | Create (invite) portal user |
portal-users get | GET /v1/portal_users/{id} | Get portal user |
portal-users update | PATCH /v1/portal_users/{id} | Update portal user |
portal-users delete | DELETE /v1/portal_users/{id} | Delete portal user |
portal-users email-preview | GET /v1/portal_users/{id}/email-preview | Preview portal user email |
portal-users resend | POST /v1/portal_users/{id}/resend | Resend invitation or verification email |
portal-users activity get | GET /v1/portal_users/{id}/activity | Get portal user activity |
portal-users activity timeline list | GET /v1/portal_users/{id}/activity/timeline | List portal user activity timeline |
portal-users invite create | POST /v1/portal_users/invite | Invite portal user |
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.
# List portal users
kobana dashboards portal-users list \
--params '{"status": "active", "per_page": 50}' \
--fields "id,email,tenant_id,last_login_at"
# Create (invite) portal user
kobana dashboards portal-users create \
--json '{"email": "ana@example.com", "tenant_id": "12345678000190"}'
# Resend invitation or verification email
kobana dashboards portal-users resend --params '{"id": "PORTAL_USER_ID"}'
# Get portal user activity
kobana dashboards portal-users activity get \
--params '{"id": "PORTAL_USER_ID", "days": 30}'
# Update portal user
kobana dashboards portal-users update \
--params '{"id": "PORTAL_USER_ID"}' \
--json '{"status": "suspended"}'
Next steps
- Portal user mapping
- Exports
- Schema introspection — every parameter this resource accepts.