Skip to navigation

Identity

Users own access. Agents have separate identities and workspace rules for the work they do.
View as Markdown

Identity hierarchy

App User User Agent Agent Workspace rules Workspace rules
ConceptPurpose
AppConnect your product; keep app credentials in your backend.
UserProvide file access and own agents through a Dropbox account or API-only managed user.
AgentGive an automated actor a persistent identity. Each agent belongs to one user.
WorkspaceLimit access to the user’s files and folders; it is a set of rules, not a separate container.
Managed userStore content without a Dropbox sign-in flow.
Tenant (planned)Add a separate administration and credential boundary.

Users

  • Existing Dropbox user: connect through OAuth and store their Dropbox account ID.
  • Managed user: create through your app and save the returned user_public_id. Email is contact metadata, not a sign-in or recovery address.

Agent responses include owner_user_public_id, an opaque ID bound to your app. Managed-user selectors also use app-bound public IDs. Use users/get or users/list to retrieve your app’s active managed users.

User creation

User creation is not idempotent. Check existing users before retrying a request whose outcome is unknown.

Update a managed user

Use the owning app’s profile and a saved alias or user_public_id:

dbx user update app-user \
--name 'Updated example user' \
--email 'producer@example.com' \
--profile provider

Include every value you want to retain. Omitted --name or --email values are cleared; omitting both clears both.

The users/update API uses app authentication and has the same replacement behavior.

Delete managed users

Irreversible deletion

Deletion is irreversible; file purge is asynchronous. A failed request may have deleted some users. Retry the same command to finish.

Pass up to 100 aliases or public IDs using the owning app’s profile:

dbx user delete app-user --profile provider

After success, the CLI removes matching aliases from that profile. On failure it keeps them for retry. The users/delete API also uses app authentication, but leaves local CLI aliases in place.

Agents and runtimes

Store the agent ID to edit its workspace or mint runtime tokens. Writes remain attributed to that agent across token replacements; Recovery uses the identity to inspect and undo changes.

A runtime is the sandbox, VM, container, or process running the agent. Give it only its short-lived agent token, never app or user credentials.

Next: Authentication for credentials; Workspaces for access rules.