Enterprise User Commands
Manages individual enterprise users when used by enterprise admin.
Operations:
User add, edit, view, delete user
Actions like lock, unlock, extends, expire
Set user aliases and nodes.
Usage
enterprise-user command [--options] OR eu command [--options]Alias: eu
Commands
Enterprise User View
This command can be used to view an enterprise user's details
DotNet CLI
Command: enterprise-user view
Parameter : --team Email OR UID
Alias: eu vie
Example:
My Vault> eu view [email protected]
User Email: [email protected]
User Name: John Doe
User ID: 894448414228492
Status: Active
Teams: Engineering Team
DevOps Team
Node: Engineering
My Vault> enterprise-user view 894448414228492
User Email: [email protected]
User Name: John Doe
User ID: 894448414228492
Status: Active
Teams: Engineering Team
DevOps Team
Node: Engineering DotNet SDK
Functions:
EnterpriseData.GetTeamsForUser
EnterpriseData.TryGetTeam
EnterpriseData.TryGetTeam
The following functions together will give all data related to user from enterprise perspective
PowerCommander
Command: Get-KeeperEnterpriseUser
Syntax:
Aliases: keu
Parameters:
-Email- User email-Filter- Search filter
Example:
Python CLI
Command: enterprise-user view
Parameter:
email - User email. Can be repeated. (required)
Flag:
-v,--verbose- Print verbose information-h, --helpshow this help message and exit--format- format of output:{table,json}--output- path to resulting output file (ignored for "table" format)
Example:
Enterprise User Add
Create enterprise user(s).
DotNet CLI
Command: enterprise-user invite
Alias: eu invite
Parameter:
email
email of the user to add
Example:
DotNet SDK
Function: InviteUser(string email, [InviteUserOptions options = null])
Arguments:
email
string
Yes
Email address of the user to invite
options
InviteUserOptions
No
Invitation options (default: null)
Returns:
Task<EnterpriseUser> - A task returning the created EnterpriseUser object
InviteUserOptions Properties:
FullName
string
User's full name
NodeId
long
Node ID where user will be assigned
TeamIds
IEnumerable
List of team IDs to add user to
Example:
PowerCommander
Command: Add-KeeperEnterpriseUser
Parameters:
Email
Email address to invite.
Flags:
-Name
Full name of the user
-Node
Node name or ID where the user will be assigned
-NodeId
Node ID as a long integer (alternative to -Node)
-Emails
Extra email addresses to invite (for batch invitations)
Example:
Python CLI
Command: enterprise-user add
Parameter:
email - User email. Can be repeated. (required)
Flag:
-h, --helpshow this help message and exit--parent- Parent node name or ID--full-name- Set user full name--job-title- Set user job title
Example:
Enterprise User Edit
Edit enterprise user details like adding and removing roles and teams.
DotNet CLI
DotNet CLI supports team-add and team-remove functionalities
Team-add:
Command: enterprise-user team-add
Alias: eu team-add
Parameters:
email
Email address of the user to add to team
--team
Name or UID of the team.
Flags:
--teamname
Alternative flag for team name
--help
Display help screen
--version
Display version information
Example:
Team-remove:
Command: enterprise-user team-remove
Alias: eu team-remove
Parameters:
email
Email address of the user to remove from team.
--team
Name or UID of the team.
Flags:
--teamname
Alternative flag for team name
--help
Display help screen
--version
Display version information
Example:
DotNet SDK
AddUsersToTeams:
Add one or more active users to one or more teams programmatically using the .NET SDK. This method works only for users with "Active" status. For non-active users (Invited, Locked), use QueueUserToTeam instead.
Function:
Arguments:
emails
string[]
Yes
Array of user email addresses to add to teams
teamUids
string[]
Yes
Array of team UIDs to add users to
warnings
Action
No
Optional callback to receive warning messages (default: null)
Returns:
Task - A task that completes when all users are added to all teams
Example:
QueueUserToTeam:
Queue a non-active user (Invited or Locked status) to be added to a team. The user will be added to the team automatically when their account becomes active. Use this for users who haven't accepted their invitation yet or whose accounts are locked.
Function:
Arguments:
enterpriseUserId
long
Yes
Enterprise user ID of the non-active user
teamUid
string
Yes
UID of the team to queue the user for
Returns:
Task - A task that completes when the user is queued for the team
Example:
RemoveUsersFromTeams:
Remove one or more users from one or more teams programmatically using the .NET SDK. This operation removes team membership but does not delete user accounts or affect other teams the users belong to.
Function:
Arguments:
emails
string[]
Yes
Array of user email addresses to remove from teams
teamUids
string[]
Yes
Array of team UIDs to remove users from
warnings
Action
No
Optional callback to receive warning messages (default: null)
Returns:
Task - A task that completes when all users are removed from all teams
Example:
Python CLI
Command: enterprise-user edit
Parameter:
email - User email or UID. Can be repeated. (required)
Flag:
-h, --helpshow this help message and exit--parent- Parent node name or UID--full-name- Set user full name--job-title- Set user job title--add-role- Role name or role ID.--remove-role- Role name or role ID.--add-team- Team name or team UID.--remove-team- Team name or team UID.-hsf,--hide-shared-folders- User does not see shared folders.--add-teamonly:
{on,off}
Example:
Enterprise User Delete
Delete users from enterprise.
DotNet CLI
Command: enterprise-user delete <email>
Alias :eu delete <email>
Parameter:
email Email ID (required)
Options:
--yes- Skip confirmation prompt (for delete)
Example:
PowerCommander
Command: Remove-KeeperEnterpriseUser OR delete-user
Parameters:
-User- User email (required)-Force- Skip confirmation
Example:
Python CLI
Command: enterprise-user delete
Parameter:
email - User email or UID. Can be repeated. (required)
Flag:
-h, --helpshow this help message and exit-f,--force- Do not prompt for confirmation
Example:
Enterprise User Action
Enterprise user actions like lock and unlocking can be performed using this command.
DotNet SDK
Function: SetUserLocked
if locked is set to true, then user will be locked, else user will unlock.
Example:
PowerCommander
Command: Lock-KeeperEnterpriseUser or Unlock-KeeperEnterpriseUser
Aliases: lock-user, unlock-user
Parameter: -User -User email
Command: Move-KeeperEnterpriseUser
Transfer user to different node
Aliases: transfer-user
Syntax:
Parameters:
-Email- User email (required)-NodeId- Destination node ID (required)
Examples:
Python CLI
Command: enterprise-user action
Parameter:
email - User email or ID. (required)
Flag:
-h, --help- Show this help message and exit--expire- Expire master password--extend- Extend vault transfer consent by 7 days. Supports the following pseudo users: @all--lock- Lock user--unlock- Unlock user--disable-2fa- Disable 2fa for user
Example:
Enterprise User Alias
Manage user aliases by either adding or removing aliases.
DotNet CLI
Command: enterprise-user <action> username --alias="<alias>" OR eu <action> username --alias="<alias>"
Parameter:
email - User email or ID.
Examples:
Add-Alias:
Alias-Remove:
Last updated
Was this helpful?

