User commands
Reference for dataos-ctl user commands.
The user command group manages DataOS® users: creating and deleting user accounts, issuing API keys, assigning tags (including role assignments), and reviewing a user's audit history. A Platform Administrator typically runs these commands to manage who can access a DataOS® instance and what roles they hold.
Quick reference
dataos-ctl user
Manage DataOS® Users
dataos-ctl user apikey create
Create an apikey for a user
dataos-ctl user apikey delete
Delete the apikey for a user
dataos-ctl user apikey get
Get the apikey for a user
dataos-ctl user authorize
Authorize a DataOS® User
dataos-ctl user changes get
Get the changes for a user
dataos-ctl user create
Create a DataOS® User
dataos-ctl user delete
Delete a DataOS® User
dataos-ctl user get
Get DataOS® Users
dataos-ctl user invites get
Get DataOS® User Invites
dataos-ctl user tag add
Add tags to a user
dataos-ctl user tag delete
Delete tags from a user
dataos-ctl user get
Get one user, or every user in the tenant.
Syntax
Flags
-i, --id
ID of the user to get. Defaults to the currently authenticated user.
string
No
-a, --all
Get every user in the tenant.
boolean
No
-h, --help
Display help for this command.
boolean
No
Example
Table columns: NAME, ID, TYPE (person or application), EMAIL, and TAGS. The TAGS column mixes role-assignment tags (roles:id:<role-name>) with a self-reference tag (users:id:<user-id>). Without --all or --id, get returns only the currently authenticated user.
dataos-ctl user create
Create a new DataOS® user, optionally provisioning an API key at the same time.
Syntax
Flags
-n, --name
The user's name.
string
Yes
-e, --email
The user's email.
string
Yes
-t, --type
The user type: person or application.
string
Yes
-u, --user_id
An explicit user ID. Auto-derived from the name and email if omitted.
string
No
--tags
Comma-separated list of tags to assign, such as role tags.
strings
No
--apikeyName
Name of an API key to create for the new user.
string
No
-d, --duration
Duration the provisioned API key should live before expiring.
string
No
-h, --help
Display help for this command.
boolean
No
dataos-ctl user delete
Delete a DataOS® user.
Syntax
Flags
-i, --id
ID of the user to delete.
string
Yes
-h, --help
Display help for this command.
boolean
No
dataos-ctl user authorize
Submit an authorization request for a user from a manifest file.
Syntax
Flags
-f, --requestManifestFile
Path to the authorization request manifest file.
string
Yes
-h, --help
Display help for this command.
boolean
No
dataos-ctl user apikey get
Get the API keys belonging to a user.
Syntax
Flags
-i, --id
ID of the user. Defaults to the currently authenticated user.
string
No
-n, --name
Name of the API key.
string
No
-h, --help
Display help for this command.
boolean
No
Example
An empty result means the target user has no active, non-expired API keys.
dataos-ctl user apikey create
Create a new API key for a user.
Syntax
Flags
-i, --id
ID of the user to create the API key for.
string
Yes
-n, --name
Name of the API key.
string
Yes
-d, --duration
Duration the API key should live before expiring.
string
No, default 24h
-h, --help
Display help for this command.
boolean
No
dataos-ctl user apikey delete
Delete an API key belonging to a user.
Syntax
Flags
-n, --name
Name of the API key to delete.
string
Yes
-h, --help
Display help for this command.
boolean
No
dataos-ctl user tag add
Add tags, such as role assignments, to a user.
Syntax
Flags
-i, --id
ID of the user.
string
Yes
-t, --tags
Tags to add.
strings
Yes
-h, --help
Display help for this command.
boolean
No
dataos-ctl user tag delete
Remove tags from a user.
Syntax
Flags
-i, --id
ID of the user.
string
Yes
-t, --tags
Tags to remove.
strings
Yes
-h, --help
Display help for this command.
boolean
No
dataos-ctl user changes get
Get the audit history of changes made to a user, such as tag assignments and API key lifecycle events.
Syntax
Flags
-i, --id
ID of the user. Defaults to the currently authenticated user.
string
No
-h, --help
Display help for this command.
boolean
No
Example
Columns: CHANGE ID, SUBJECT ID (who made the change), OBJECT ID (the affected user), WHAT (change type, such as user:create, tag:add, token:add, token:delete), CREATED AT, OBJECT TYPE, and DETAILS.
dataos-ctl user invites get
Get pending DataOS® user invites for the tenant.
Syntax
Flags
-h, --help
Display help for this command.
boolean
No
Validation rules
--typeonuser createaccepts onlypersonorapplication.--idon most subcommands must match a user ID returned bydataos-ctl user get --all.--tagsand other repeatable list flags accept a comma-separated list in a single flag value.
Related commands
Tenant commands: the tenant context a user belongs to.
Resource commands: manage the resources a user's roles grant access to.
Last updated
Was this helpful?