-
Notifications
You must be signed in to change notification settings - Fork 2.1k
docs: document undocumented customer-facing changes from the last week #11677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -281,6 +281,37 @@ DELETE /api/v1/embed-tenants/{embedTenantName}/user-attributes/{id} | |
|
|
||
| These endpoints use the same `Api-Key` authentication as Generate Session and require admin access. List endpoints return cursor-paginated results (`?first=`, `?after=`). | ||
|
|
||
| ### Provisioning users | ||
|
|
||
| An embed user otherwise only exists in Cube once they generate their first | ||
| session, which means a workbook or dashboard can't be shared with a teammate | ||
| who hasn't opened the embed yet. To provision a user ahead of time — from | ||
| your own user directory, before their first session — use: | ||
|
|
||
| ```text | ||
| POST /api/v1/embed-tenants/{embedTenantName}/user | ||
|
Comment on lines
+289
to
+292
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit / follow-up: neither |
||
| POST /api/v1/embed-tenants/{embedTenantName}/users | ||
| ``` | ||
|
|
||
| The single-user endpoint takes one body with the same fields `generate-session` | ||
| accepts for an external user — `externalId`, `email`, `userProfile`, `groups`, | ||
| `tenantGroups` — so an integration uses one vocabulary whether it pushes its | ||
| directory ahead of time or lets a session provision the user. Session-only | ||
| fields (`userAttributes`, `securityContext`) aren't accepted here: a later | ||
| session re-applies them anyway, so provisioning can't be a second source of | ||
| truth for row-level security. `groups` and `tenantGroups` follow the same | ||
| replace-when-supplied, clear-with-`[]`, preserve-when-omitted rules as | ||
|
Comment on lines
+296
to
+303
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Two problems in this paragraph:
Suggest adding a |
||
| [Groups](#groups). | ||
|
|
||
| The bulk endpoint takes `{ "users": [...] }` (up to the account's bulk-action | ||
| limit) and is partially successful: it always returns `200`, with each entry | ||
| reported in `succeeded` or `failed` (with an `error.status`/`error.message`), | ||
| in the order requested. | ||
|
|
||
| Provisioning is idempotent — an existing `externalId` is updated, not | ||
| rejected — and the embed tenant itself is created on demand if it doesn't | ||
| exist yet. | ||
|
|
||
| ### Response | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Cheapest fix while you're in here: promote it back out of the admin-API section, e.g. rename to |
||
|
|
||
| The API returns a session object: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rewrite drops "remaining allocation" and nothing else on the page covers it.
The old bullet list included "Remaining allocation from per-seat grants and token packages" — that's the one thing an admin most wants from this page, and it's now unmentioned anywhere in the file. It matters directly for the very next section (
## When limits are reached), which tells admins to go buy packages but never says where they can see how much is left. If the AI Usage tab still shows remaining balance, keep a clause for it.Two smaller things:
Fix this →