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--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--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:
Python CLI
Command: enterprise-user alias
Parameter:
email - User email or ID (required)
Flag:
--add-alias- Adds user alias--remove-alias- Removes user alias
Enterprise User Resend Invite
This command/function helps to resend invite to an inactive user.
DotNet CLI
Command: enterprise-user <action> username OR eu <action> username
Parameter:
email - User email or ID.
Examples:
Reference:
DotNet SDK
Enterprise User Resend Invite:
Function: ResendEnterpriseInvite
Usage:
Parameters:
enterpriseUser
EnterpriseUser object representing the user
Example:
Reference:
PowerCommander
Command:Resend-KeeperEnterpriseInvite
Flags:
User
User who needs to be sent invite again.
Example:
Reference:
Enterprise User Set Master Password Expire
This command/function sets the master password expiration and forces the user to set a new password.
DotNet CLI
Command: enterprise-user <action> username OR eu <action> username
Parameter:
email - User email or ID.
Examples:
Reference:
DotNet SDK
Enterprise User Set Master Password Expire:
Function: SetMasterPasswordExpire
Usage:
Parameters:
email
Give user email
Example:
Reference:
PowerCommander
Command: Set-KeeperEnterpriseUserMasterPasswordExpire
Flags:
User
User whose password needs to be expired.
Example:
Reference:
Enterprise Team User Update
This command/function is used to update the usertype in a team
DotNet CLI
Command: enterprise-user <action> username --team=<team_name> --user-type=<user_type>
Parameter:
email - User email or ID.
team - Team name or ID
user-type - 0=user, 1=admin, 2=admin_only (means he wont see the shared folders but can add users to the team)
Examples:
Reference:
DotNet SDK
Enterprise Team User Update:
Function: TeamEnterpriseUserUpdate
Usage:
Parameters:
enterpriseTeam
EnterpriseTeam object representing the team
enterpriseUser
EnterpriseUser object representing the user
userType
0=user, 1=admin, 2=admin_only (means he wont see the shared folders but can add users to the team)
Example:
Reference:
PowerCommander
Command: Update-KeeperEnterpriseTeamUser
Flags:
User
Updates enterprise user information.
Team
Team name or UID
UserType
User type: 0, 1, or 2 0 - User (Normal User) 1 - Administrator 2 - Administrator Only
Example:
Reference:
Enterprise User Update
This command/function is used to update the user like display name, job title
DotNet CLI
Command: enterprise-user <action> username --node=<node_name> --name=<display_name> --job-title=<title> --invitee-locale=<location_name>
Parameter:
email - User email or ID.
node - New node name or ID.
name - New user display name.
job-title - New job title.
invitee-locale - New location.
Examples:
Reference:
DotNet SDK
Enterprise User Update:
Function: EnterpriseUserUpdate
Usage:
Parameters:
enterpriseUser
EnterpriseUser object representing the user
nodeId
Enter Node Id or name
fullName
Enter display name
jobTitle
Enter job title name
inviteeLocale
one of the 21 locales that we support. Default is en_US.
Example:
Reference:
PowerCommander
Command: Update-KeeperEnterpriseUser
Flags:
User
True
Updates enterprise user information.
Node
False
Node name or ID
FullName
False
User's full name
JobTitle
False
User's job title
InviteeLocale
False
User's locale for invitations
Example:
Reference:
Last updated
Was this helpful?

