Get-SCSPFTenantUserRole
Get-SCSPFTenantUserRole
Gets one or more tenant user role objects.
構文
Parameter Set: FromRoleIdParameterSetName
Get-SCSPFTenantUserRole [-ID] <Guid[]> [ <CommonParameters>]
Parameter Set: FromRoleTenantParameterSetName
Get-SCSPFTenantUserRole [-Tenant] <Tenant> [[-Name] <String[]> ] [ <CommonParameters>]
詳細説明
The Get-SCSPFTenantUserRole cmdlet gets one or more tenant role objects in Service Provider Foundation. To create a new tenant user role, use the New-SCSPFTenantUserRole cmdlet.
パラメーター
-ID<Guid[]>
Specifies one or more identifiers (as a GUID) for a specific object.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-Name<String[]>
Specifies the name of one or more tenant user roles.
エイリアス |
なし |
必須? |
false |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-Tenant<Tenant>
Specifies a tenant for which this cmdlet will return associated tenant user roles. To obtain a tenant, use the Get-SCSPFTenant cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
1: Get all tenant user roles.
This command lists all tenant user roles.
PS C:\> Get-SCSPFTenantUserRole
2: Get a tenant user role by its ID.
This command gets a tenant user role by its ID.
PS C:\> $tur = Get-SCSPFTenantUserRole -ID e6f9f901-2883-4478-a64e-00c58a423516
3: Get the tenant user role that is associated with a tenant.
The first command gets a tenant.
The second command gets the tenant user roles associated with a tenant.
PS C:\> $tnnt = Get-SCSPFTenant -Name "Contoso"
PS C:\> $tur = Get-SCSPFTenantUserRole -Tenant $tnnt