external help file: Builtin-help.xml Module Name: Builtin online version: schema: 2.0.0


New-Permission

SYNOPSIS

Creates a new adhoc permission associated with a plugin.

SYNTAX

New-Permission -Bot <Object> [-Name] <String> [-Plugin] <String> [[-Description] <String>] [<CommonParameters>]

DESCRIPTION

{{Fill in the Description}}

EXAMPLES

EXAMPLE 1

!new-permission --name read --plugin myplugin --description 'Execute all read commands'

Create the [read] permission in the [myplugin] plugin.

PARAMETERS

-Bot

{{Fill Bot Description}}

Type: Object
Parameter Sets: (All)
Aliases:

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

-Name

The name of the new permission to create.

Type: String
Parameter Sets: (All)
Aliases:

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

-Plugin

The name of the plugin in which to associate the permission to.

Type: String
Parameter Sets: (All)
Aliases:

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

-Description

The description for the new permission.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES