Sharing Commands
This page gives information of commands related to sharing records and shared folders
Overview
This is the set of commands which we use related to sharing with user
One Time Share Create Command
This command can be used to create share-links of records in vault for sharing credentials or record information with a user externally. The link can be opened on one device/browser only and can be reopened only on that device/browser till the expiration of the link
DotNet CLI
Command: one-time-share
Flags:
--client: One-Time Share action namecreate. This is a required positional argument at position 0 after the command.--expire: Expire share in [(m)inutes|(h)ours|(d)ays. Only used with argumentcreate.--help: Display this help screen.--version: Display version information.value pos. 0: This is a required KSM command that specifies the action to perform. It is a positional argument that must be placed at position 0 immediately after the command. Accepted values are:create– To create a new one-time-share
value (pos. 1): Required. The Record UID or path to be shared. This is a positional argument placed at position 1 immediately after the command.
Example:
My Vault > one-time-share create record_uid --expire 2m
URL: https://keepersecurity.com:443/vault/share#asdfsadfDotNet SDK
Function:
public static async Task<string> CreateExternalRecordShare(this VaultOnline vault,
string recordUid,
TimeSpan expireIn,
string shareName = null)Arguments:
vault: Used with the Vault Context.
vault.CreateExternalRecordShare(record.Uid, TimeSpan expireIn)recordUid: Uid of the record which needs to be shared.TimeSpan: Object of the TimeSpan class used to set the expiration time of the record.shareName: Name of the one-time-share.
Power Commander
Command: New-KeeperOneTimeShare
Aliases: kotsn
Flags:
-Uid: Uid of Record-ExpireIn: One Time Share expires time in minutes-ExpireAt: One Time Share expires time in date format-ShareName: One Time Share record name
Example:
Python CLI
Command: share-create
Parameters:
record: <RECORD_UID> or path of records for which share URL is to be created-e, --expire: Timeout period for the share-url. Link will not work after the duration has passed. Max period that can be set is 6 months or 182 days
Options:
--name: Name of the share URL--editable: Allow user to edit the shared record--output: Destination for the share URL (Clipboard or console/standard output)
Example:
One Time Share List Command
This command is used to list the one-time-shares created for a record or folder. The command displays the record/folder UID, share name, share id, create date, access date and expiration date along with status of the link as generated, accessed or expired.
DotNet CLI
Command: one-time-share
Action:
This is a required KSM command that specifies the action to perform. It is a positional argument that must be placed at position 0 immediately after the command. Accepted values are:
list– To display a list of one-time share URLs for the record.
Flags:
value pos. 1: Required. The Record UID or path to be shared. This is a positional argument placed at position 1 immediately after the command.--client: One-Time Share action namelist. This is a required positional argument at position 0 after the command.--help: Display this help screen.--version: Display version information.
Example:
DotNet SDK
Function:
Arguments:
vault: Used with the Vault Context.
recordUid: UID of the record for which the list of one-time shares should be displayed.
Python CLI
Command: share-list
Parameters:
record: <UID> or path of record/folder
Options:
-v, --verbose: Show the entire output if share id is long it gets trimmed.-a, --all: Show all one-time-share including expired-R, --recursive: Traverse recursively through subfolders--format: Output format - table, json, csv
Example:
One Time Share Remove Command
This command is used to delete one time share links for a record or folder.
DotNet CLI
Command: one-time-share
Flags:
--client: One-Time Share action namedelete. This is a required positional argument at position 0 after the command.--help: Display this help screen.--version: Display version information.value pos. 0: This is a required KSM command that specifies the action to perform. It is a positional argument that must be placed at position 0 immediately after the command. Accepted values are:delete– To remove an one-time-share
value pos. 1: Required. The Record UID or path to be shared. This is a positional argument placed at position 1 immediately after the command.
Example:
DotNet SDK
Function:
Arguments:
VaultOnline: Used with the Vault Context.
ClientId: Client ID of the shares of the record ID.
Power Commander
Command: Remove-KeeperOneTimeShare
Aliases: kotsr
Flags:
-Uid: Uid of Record-ShareName: List of Shared Name
Example:
Last updated

