Remove-PASAccountGroupMember

Remove-PASAccountGroupMember

SYNOPSIS

Deletes a member of an account group.

SYNTAX

Remove-PASAccountGroupMember [-AccountID] <String> [-GroupID] <String> [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Removes an account member from an account group.

This account can be either a password account or an SSH Key account.

The following permissions are required on the safe:

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

EXAMPLES

EXAMPLE 1

Remove-PASAccountGroupMember -AccountID 21_7 -GroupID 21_9

Removes member with ID of 21_& from account group with ID of 21_9

PARAMETERS

-AccountID

The unique ID of the account group.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-GroupID

The unique ID of the account group.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
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.

INPUTS

OUTPUTS

NOTES

Minimum CyberArk version 9.10

https://pspas.pspete.dev/commands/Remove-PASAccountGroupMember

https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/WebServices/DeleteMemberFromAccountGroup.htm