Returns all the account groups in a specific Safe.


Get-PASAccountGroup -Safe <String> [-UseClassicAPI] [<CommonParameters>]


Returns all the account groups in a specific Safe. The following permissions are required on the safe where the account group will be created:

  • Add Accounts
  • Update Account Content
  • Update Account Properties
  • Create Folders


-Safe <String>
    The Safe where the account groups are.

    Required?                    true
    Position?                    named
    Default value
    Accept pipeline input?       true (ByPropertyName)
    Accept wildcard characters?  false

-UseClassicAPI [<SwitchParameter>]
    Specify the UseClassicAPI to force usage the Classic (v9) API endpoint.
    Relevant for CyberArk versions earlier than 10.5

    Required?                    false
    Position?                    named
    Default value                False
    Accept pipeline input?       false
    Accept wildcard characters?  false

    This cmdlet supports the common parameters: Verbose, Debug,
    ErrorAction, ErrorVariable, WarningAction, WarningVariable,
    OutBuffer, PipelineVariable, and OutVariable. For more information, see
    about_CommonParameters (https:/


-------------------------- EXAMPLE 1 --------------------------

PS C:\>Get-PASAccountGroup -Safe SafeName

List all account groups in SafeName