Get-PASSafeMember
Get-PASSafeMember
SYNOPSIS
Lists the members of a Safe
SYNTAX
Gen2 (Default)
Get-PASSafeMember -SafeName <String> [-TimeoutSec <Int32>] [<CommonParameters>]
Gen1-MemberPermissions
Get-PASSafeMember -SafeName <String> -MemberName <String> [-UseGen1API] [<CommonParameters>]
Gen1-SafeMembers
Get-PASSafeMember -SafeName <String> [-UseGen1API] [<CommonParameters>]
Gen2-MemberFilter
Get-PASSafeMember -SafeName <String> [-memberType <String>] [-membershipExpired <Boolean>]
[-includePredefinedUsers <Boolean>] [-search <String>] [-sort <String>] [-TimeoutSec <Int32>]
[<CommonParameters>]
Gen2-MemberPermissions
Get-PASSafeMember -SafeName <String> -MemberName <String> [-useCache <Boolean>] [<CommonParameters>]
DESCRIPTION
Lists the members of a Safe.
- View Safe Members permission is required.
- Defaults to the Gen 2 API which requires 12.0 or higher.
- Additional member filter parameters require 12.1 or higher.
- MemberName parameter requires 12.2 or higher for use with Gen2 API.
- Versions lower than 12.0 (or 12.2 when using the MemberName parameter) must specify the
UseGen1API
switch to force use of the Gen1 API.
Note When using the Gen1 API & querying all members of a safe, the permissions are reported as follows:
- List accounts (ListContent)
- Retrieve accounts (Retrieve)
- Add accounts, including update properties (Add)
- Update account content (Update)
- Update account properties (UpdateMetadata)
- Rename accounts (Rename)
- Delete accounts (Delete)
- View Audit log (ViewAudit)
- View Safe Members (ViewMembers)
- Use accounts (RestrictedRetrieve)
- Initiate CPM account management operations (<NOT RETURNED>)
- Specify next account content (<NOT RETURNED>)
- Create folders (AddRenameFolder)
- Delete folders (DeleteFolder)
- Unlock accounts (Unlock)
- Move accounts/folders (MoveFilesAndFolders)
- Manage Safe (ManageSafe)
- Manage Safe Members (ManageSafeMembers)
- Validate Safe Content (ValidateSafeContent)
- Backup Safe (BackupSafe)
- Access Safe without confirmation (<NOT RETURNED>)
- Authorize account requests (<NOT RETURNED>)
If a Safe Member Name is provided, the full permissions of the member on the Safe will be returned as follows:
- List accounts (ListAccounts)
- Retrieve accounts (RetrieveAccounts)
- Add accounts, including update properties (AddAccounts)
- Update account content (UpdateAccountContent)
- Update account properties (UpdateAccountProperties)
- Rename accounts (RenameAccounts)
- Delete accounts (DeleteAccounts)
- View Audit log (ViewAuditLog)
- View Safe Members (ViewSafeMembers)
- Use accounts (UseAccounts)
- Initiate CPM account management operations (InitiateCPMAccountManagementOperations)
- Specify next account content (SpecifyNextAccountContent)
- Create folders (CreateFolders)
- Delete folders (DeleteFolder)
- Unlock accounts (UnlockAccounts)
- Move accounts/folders (MoveAccountsAndFolders)
- Manage Safe (ManageSafe)
- Manage Safe Members (ManageSafeMembers)
- Validate Safe Content (<NOT RETURNED>)
- Backup Safe (BackupSafe)
- Access Safe without confirmation (AccessWithoutConfirmation)
- Authorize account requests (RequestsAuthorizationLevel)
EXAMPLES
EXAMPLE 1
Get-PASSafeMember -SafeName Target_Safe
Lists all members with permissions on Target_Safe
Minimum required version 12.0
EXAMPLE 2
Get-PASSafeMember -SafeName Target_Safe -MemberName SomeUser
Lists all permissions for member SomeUser on Target_Safe using Gen2 API
Requires minimum CyberArk Version of 12.2
EXAMPLE 3
Get-PASSafeMember -SafeName Target_Safe -UseGen1API
Lists all members with permissions on Target_Safe using the Gen1 API.
EXAMPLE 4
Get-PASSafeMember -SafeName Target_Safe -MemberName SomeUser -UseGen1API
Lists all permissions for member SomeUser on Target_Safe using Gen1 API
Deprecated from CyberArk Version 12.3
PARAMETERS
-SafeName
The name of the safe to get the members of
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-MemberName
Specify the name of a safe member to return their safe permissions in full.
Operation against Gen2 API requires minimum version of 12.2
NOTE for Gen1 Operation: An empty PUT request (update) is sent to retrieve full safe permissions for a user:
-UseGen1API
parameter must be specified.- You cannot report on the permissions of the user authenticated to the API.
- Reporting on the permissions of the Quota Owner is expected to fail.
- Deprecated from CyberArk Version 12.3
Type: String
Parameter Sets: Gen1-MemberPermissions, Gen2-MemberPermissions
Aliases: UserName
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-includePredefinedUsers
Filter to include/exclude predefined users in the returned list.
Minimum required version 12.1
Type: Boolean
Parameter Sets: Gen2-MemberFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-membershipExpired
Returns either expired members or members that are not expired.
Minimum required version 12.1
Type: Boolean
Parameter Sets: Gen2-MemberFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-memberType
Filter members according to the type (user or group).
Minimum required version 12.1
Type: String
Parameter Sets: Gen2-MemberFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-search
Search for safe members matching specific strings.
Minimum required version 12.1
Type: String
Parameter Sets: Gen2-MemberFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-sort
Sorts results according to the memberName property in ascending order (default) or descending order.
Minimum required version 12.1
Type: String
Parameter Sets: Gen2-MemberFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-TimeoutSec
See Invoke-WebRequest
Specify a timeout value in seconds
Type: Int32
Parameter Sets: Gen2, Gen2-MemberFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UseGen1API
Force use of the Gen1 API.
Should be specified for versions earlier than 12.0.
Should be specified for versions earlier than 12.2 when querying by MemberName
Type: SwitchParameter
Parameter Sets: Gen1-MemberPermissions
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: SwitchParameter
Parameter Sets: Gen1-SafeMembers
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-useCache
Whether or not to retrieve the cache from a session.
Type: Boolean
Parameter Sets: Gen2-MemberPermissions
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.