For the complete documentation index, see llms.txt. This page is also available as Markdown.

Shared Folder Commands

This page documents commands related to shared folder

Overview

This page catalogs and provides detailed information about shared folders lists and teams.

  1. List-Share-Folder

  2. Share Folder

Command

List Share Folder Command

Lists the shared folders within a specified folder or the current directory in your Keeper vault.

DotNet CLI

Command: sf-list

Example:

My Vault> sf-list
  #  Shared Folder UID       Name                             # Records  # Users
---  ----------------------  -------------------------------  ---------  -------
  1  shared_folder_uid       Test-Shared-Folder                11         1      
DotNet SDK

Function:

var sharedFolders = vault.SharedFolders;
Power Commander

Command: Get-KeeperSharedFolder

Flag:

  • -Uid : Uid of the Shared Folder

  • -Filter : Used to filter the shared folders.

Example:

Python CLI

Command: list-sf

Options:

  • pattern : Pattern of the title or UID of the shared folder.

  • -h, --help : show this help message and exit

  • --format : Specifies the output format of the list-sf command. The available options are:

    • table: The Output will be displayed in table format. By default, the output will be in table format.

      • Example: --format table

    • csv: The Output will be displayed in csv format.

      • Example: --format csv

    • json : The Output will be displayed in json format.

      • Example: --format json

  • --output : Users can use this flag to store the output in a file. This flag should not be used when the output format is set to table (--format table).

    • Example: --output <file_name>

  • --verbose, -v : verbose output

Example:

Python SDK

Function: find_shared_folders

Example:

Share Folder Command

Changes sharing permissions on classic shared folders. Use it to grant or remove users, teams, and records.

Notes:

  • Classic shared folders only. Not NSF or Keeper Drive nested folders.

  • Invitations: If a user has no Keeper account, the SDK sends an invite. Share again after they accept.

  • Chunking: The CLI chunks large user and record sets at 999 per batch. The SDK send_requests call chunks at 999 requests per API call.

Python CLI

Command: share-folder [options] <folder> [<folder> ...]

Alias: sf

Positional parameter:

  • folder : Required. Accepts one or more shared folder paths, names, or UIDs. Use * to target all shared folders in the vault.

Action:

  • -a, --action : grant or remove. Default is grant.

    • grant adds or updates access.

    • remove revokes user, team, or record access.

Users and teams:

  • -e, --email : Repeatable. Accepts:

    • user@example.com to grant or remove a user.

    • <team_name> or <team_uid> to grant or remove a team.

    • @existing or @current to target all users and teams already in the folder.

    • * to update default folder account permissions.

Records:

  • -r, --record : Repeatable. Accepts:

    • Record title or UID.

    • @existing or @current to target all records in the folder.

    • * to update default record permissions.

Account permissions:

  • -p, --manage-records : on or off. Lets the user or team add, remove, or edit records in the folder.

  • -o, --manage-users : on or off. Lets the user or team add or remove other users and teams.

Record permissions:

  • -d, --can-edit : on or off. Lets shared records be edited.

  • -s, --can-share : on or off. Lets shared records be re-shared.

Expiration:

  • --expire-at : never or an ISO datetime in yyyy-MM-dd or yyyy-MM-dd hh:mm:ss format.

  • --expire-in : never or <N>[(y)ears|(mo)nths|(d)ays|(h)ours|(mi)nutes].

  • Expiration only applies with --action grant.

  • If omitted, the share does not expire.

Rotate on expiration:

  • -roe, --rotate-on-expiration : Rotates pamUser passwords when share access expires.

Other:

  • -f, --force : Declared on the command. It ignores default folder permissions on initial share. It is not wired into the current SDK CLI execute logic.

Examples:

Python SDK

Example:

JavaScript SDK

Function: listSharedFolders

Shared Folder - Change Record Permissions Command

Allows users to change the permissions of records within a shared folder. Users can add or revoke permissions for individual records as needed.

DotNet CLI

Command: sf-record

Flag:

  • -r, --record : The record name or record UID of the item that needs to be shared within the shared folder.

  • -s, --can-share : A Boolean value (true or false). If true, the user has share permission. If false, the edit permission will be removed.

  • -e, --can-edit : A Boolean value (true or false). If true, the user has edit permission. If false, the edit permission will be removed.

  • --expire-at : Expire share at ISO time: YYYY-MM-DD HH🇲🇲SS

  • --expire-in : Expire share in period: [N]mi|h|d|mo (Minutes / hours / days / months)

  • --help : Display this help screen.

  • --version : Display version information.

  • folder name (pos. 0) : Required. folder name

Example:

DotNet SDK

Function: ChangeRecordInSharedFolder

Example:

Power Commander

Command : Set-KeeperSharedFolderRecordPermission

Alias: ksfr

Flags:

  • -SharedFolder : UID, name, or object containing the shared folder UID/name.

  • -Record : UID or object containing the record UID.

  • -CanEdit : Whether shared-folder members can edit the record. Accepts true, false, 1, or 0.

  • -CanShare : Whether shared-folder members can re-share the record. Accepts true, false, 1, or 0.

  • -ExpireIn : Sets the record permission expiration relative to the current time, such as 30d or 1h.

  • -ExpireAt : Sets an absolute expiration date and time.

  • -RotateOnExpiration : Rotates the record password when the permission expires. Requires an expiration and a shared folder containing a configured pamUser rotation record.

  • -WhatIf : Previews the permission change without making changes.

  • -Confirm : Requests confirmation before changing permissions.

Example:

Python CLI

Command: record-permission

Parameters:

  • -a, --action Grant or Revoke (required)

  • folder Shared folder uid to which the changes need to be applied (required)

Options:

  • --dry-run Display the permissions changes without committing them

  • --force Apply permission changes without any confirmation

  • -R, --recursive Apply permission changes to all sub-folders

  • --share-record Change a records sharing permissions

  • --share-folder Change a folders sharing permissions

  • -s, --can-share Set record permission: can be shared

  • -d, --can-edit Set record permission: can be edited

    • --can-edit or --can-share is required

  • Example:

Python SDK

Command :

Add user or team to Share Folder Command

Add a user or team to a shared folder with specified access permissions.

DotNet CLI

Command: Coming soon.

DotNet SDK

Function:

Power Commander

Command: Grant-KeeperSharedFolderAccess -SharedFolder <String> [-User <String>] [-Team <String>] [-ManageUsers <Boolean>] [-ManageRecords <Boolean>] [-TransferRecords <Boolean>] [-AllowShareFullVault <Boolean>] [-WhatIf] [-Confirm]

Flag:

  • -SharedFolder : Shared folder UID or name to which access will be granted.

  • -User : Email or user UID to grant access to. Either -User or -Team must be specified.

  • -Team : Team UID or name to grant access to. Either -User or -Team must be specified.

  • -ManageUsers : Grant permission to manage users in the shared folder.

  • -ManageRecords : Grant permission to manage records in the shared folder.

  • -TransferRecords : Grant permission to transfer record ownership within the shared folder.

  • -AllowShareFullVault : Grant permission to share records from the full vault (not just shared folder).

  • -WhatIf : Shows what would happen if the cmdlet runs without actually executing.

  • -Confirm : Prompts for confirmation before executing the cmdlet.

Example:

Python CLI

Command: coming Soon

Python SDK

Function: Coming soon

Remove user or team from Share Folder Command

Remove a user or team from a shared folder.

DotNet CLI

Command: Coming soon.

DotNet SDK

Function:

Power Commander

Command: Revoke-KeeperSharedFolderAccess -SharedFolder <String> [-User <String>] [-Team <String>] [-Force] [-WhatIf] [-Confirm]

Flag:

  • -SharedFolder : Shared folder UID or name to which access will be granted.

  • -User : Email or user UID to grant access to. Either -User or -Team must be specified.

  • -Team : Team UID or name to grant access to. Either -User or -Team must be specified.

  • -Force : Revoke access without confirmation prompt.

  • -WhatIf : Shows what would happen if the cmdlet runs without actually executing.

  • -Confirm : Prompts for confirmation before executing the cmdlet.

Example:

Python CLI

Command: coming Soon

Python SDK

Function: Coming soon

JavaScript SDK

Function: shareFolder

Last updated