keeper-sdk-dotnet icon indicating copy to clipboard operation
keeper-sdk-dotnet copied to clipboard

Feature: Add function in powershell module to create external/one-time sharing links

Open bauera-hk opened this issue 1 year ago • 1 comments

Hi there,

could you please add a function to create One-Time Sharing links via powershell?

Something like:

function New-KeeperOneTimeShare {
    <#
	.Synopsis
	New Keeper One-Time Share

	.Parameter Uid
	Shared Record UID

	.Parameter Expiration
	Expiration TimeSpan
#>
    [CmdletBinding()]
    [OutputType([string])]
    Param (
        [string] $Uid,
        [TimeSpan] $Expiration
    )

    [KeeperSecurity.Vault.VaultOnline]$vault = getVault

    $oneTimeShare = [KeeperSecurity.Vault.ExternalRecordShareExtensions]::CreateExternalRecordShare($vault, $Uid, $Expiration)

    return $oneTimeShare
}

bauera-hk avatar Apr 25 '24 19:04 bauera-hk

PowerCommander 0.9.7 release adds one-time share support

  • Get-KeeperOneTimeShare
  • New-KeeperOneTimeShare
  • Remove-KeeperOneTimeShare

sk-keeper avatar May 01 '24 05:05 sk-keeper