Add-PASAccountACL
Add-PASAccountACL
SYNOPSIS
Adds a new privileged command rule to an account.
SYNTAX
Add-PASAccountACL [-AccountPolicyId] <String> [-AccountAddress] <String> [-AccountUserName] <String>
[-Command] <String> [-CommandGroup] <Boolean> [-PermissionType] <String> [[-Restrictions] <String>]
[-UserName] <String> [<CommonParameters>]
DESCRIPTION
Adds a new privileged command rule to an account.
Not supported in Privilege Cloud
EXAMPLES
EXAMPLE 1
Add-PASAccountACL -AccountPolicyID UNIXSSH -AccountAddress ServerA.domain.com -AccountUserName root `
-Command 'for /l %a in (0,0,0) do xyz' -CommandGroup $false -PermissionType Deny -UserName TestUser
This will add a new Privileged Command Rule to root for user TestUser
PARAMETERS
-AccountPolicyId
The PolicyID associated with account.
Type: String
Parameter Sets: (All)
Aliases: PlatformID, PolicyID
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-AccountAddress
The address of the account whose privileged commands will be listed.
Type: String
Parameter Sets: (All)
Aliases: Address
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-AccountUserName
The name of the account’s user.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Command
The Command
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CommandGroup
Boolean for Command Group
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-PermissionType
Allow or Deny permission
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Restrictions
A restriction string
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UserName
The user this rule applies to
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 8
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.