Transfer User Commands

Transfer user account from one user to another.

Usage

Transfer user account and vault to another user

Dotnet CLI

Command: transfer-user

Usage:

transfer-user [options] <from-user> <target-user>

Options:

  • -f, --force - Force reload enterprise data

Note: This transfers all vault data from the source user to the target user. The source user will be locked after transfer.

Example:

transfer-user [email protected] [email protected]
transfer-user UserID123 UserID456
DotNet SDK

Function: TransferUserAccount

 public async Task<AccountTransferResult> TransferUserAccount(IRoleData roleData, EnterpriseUser fromUser,
            EnterpriseUser targetUser)

Example:

var result = await context.EnterpriseData.TransferUserAccount(context.RoleManagement, fromUser, targetUser);
PowerCommander

Command: Move-KeeperEnterpriseUser Transfer user to different node

Syntax:

Move-KeeperEnterpriseUser [-Email] <string> [-NodeId] <long> [<CommonParameters>]

Aliases: transfer-user

Parameters:

  • -Email - User email (required)

  • -NodeId - Destination node ID (required)

Examples:

Move-KeeperEnterpriseUser -Email "[email protected]" -NodeId 12345
transfer-user "[email protected]" 12345

Python CLI

Command: transfer-user

Parameters:

email - User account email/ID (list of strings) or File containing account mappings. Use @filename to indicate using mapping file. (required)

Options:

  • -f, --force - Do not prompt for confirmation

  • --target-user - Email to transfer user(s) to

File Input Examples

Warning: This action cannot be undone. The source user accounts will be locked during the transfer process.

My Vault> transfer-user [email protected] --target-user [email protected]
Python SDK

Function: transfer_account

account_transfer.AccountTransferManager()
transfer_manager.transfer_account(
                        source_user, ##from user
                        target_user, ##to user
                        target_keys[target_user]
                    )

Last updated

Was this helpful?