Identity
Identity hierarchy
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 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:
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
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:
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.