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.

Command

List Share Folder Command

Lists the share 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:

PS> Get-KeeperSharedFolder

Uid                    Name                            DefaultManageRecords DefaultManageUsers DefaultCanEdit DefaultCanShare UserCount RecordCount
---                    ----                            -------------------- ------------------ -------------- --------------- --------- -----------
shared_folder_uid      example_new_shared_folder       True                 True               True           True                    1           1
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 - 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:mm: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 : Coming Soon

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 : Coming Soon

Last updated

Was this helpful?