New-SCACUserRole

New-SCACUserRole

Creates a user role in .

構文

Parameter Set: Default
New-SCACUserRole [-Name] <String> [[-Description] <String> ] [[-IsReadOnly] <Boolean> ] [ <CommonParameters>]

詳細説明

The New-SCACUserRole cmdlet creates a user role in . This cmdlet creates the user role and allows you to set it as read-only. To add or remove members or scope from the user role, use the Set-SCACUserRole cmdlet. The user role is not added to until you have set the user role.

パラメーター

-Description<String>

Provides a description of the user role.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-IsReadOnly<Boolean>

Determines whether the user role is read only.

エイリアス

なし

必須?

false

位置は?

3

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Name<String>

Specifies a name for the user role.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Create a user role

This command creates a user role named UserRole01 and stores the user role object in the $UserRole01 variable.

PS C:\> $UserRole01 = New-SCACUserRole -Name "UserRole01" -Description "First user role"

Example 2: Create a read-only user role

This command creates a read-only user role named UserRole02 and stores the user role object in the $UserRole02 variable.

PS C:\> $UserRole02 = New-SCACUserRole -Name "UserRole02" -Description "Read-only user role" -IsReadOnly $True

関連トピック

Get-SCACUserRole

Set-SCACUserRole