< Back

Add-NSPolicyToSystemGroup

Fri Jan 10, 2020 9:39 pm

NAME Add-NSPolicyToSystemGroup



SYNOPSIS

The add-nspolicytosystemgroup binds a command policy to a systemgroup





SYNTAX

Add-NSPolicyToSystemGroup [-groupname] <string> [-policyname] <string> [[-priority] <uint>] [[-session]

<nitro_service>] [<CommonParameters>]





DESCRIPTION

The add-nspolicytosystemgroup binds a command policy to a systemgroup. Use this to assign different permissions

such as super user to groups.





PARAMETERS

-session <nitro_service>

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-groupname <string>

Specify the group to bind the policy to



Required? true

Position? 0

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-policyname <string>

Specify the command policy to bind



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-priority <uint>

Specify the priority. Defaults to 100 if not specified.



Required? false

Position? 2

Default value 100

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

com.citrix.netscaler.nitro.service.nitro_service

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



System.String

Specify the group to bind the policy to



System.String

Specify the command policy to bind



System.UInt32

Specify the priority. Defaults to 100 if not specified.





OUTPUTS



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



add-nspolicytosystemgroup -groupname "admins" -policyname "superuser" -priority 100



assigns 'superuser' permissions to group 'admin'



RELATED LINKS