次の方法で共有


Get-AdminPowerAppRoleAssignment

Returns permission information about one or more apps.

Syntax

Get-AdminPowerAppRoleAssignment
   -UserId <String>
   [-ApiVersion <String>]
   [<CommonParameters>]
Get-AdminPowerAppRoleAssignment
   -EnvironmentName <String>
   -UserId <String>
   [-ApiVersion <String>]
   [<CommonParameters>]
Get-AdminPowerAppRoleAssignment
   -EnvironmentName <String>
   -AppName <String>
   [-UserId <String>]
   [-ApiVersion <String>]
   [<CommonParameters>]

Description

The Get-AdminPowerAppRoleAssignment cmdlet returns permission information about one or more apps. Use Get-Help Get-AdminPowerAppRoleAssignment -Examples for more detail.

Examples

EXAMPLE 1

Get-AdminPowerAppRoleAssignments -UserId 53c0a918-ce7c-401e-98f9-1c60b3a723b3

Returns all app role assignments across all environments for the user with an object ID of 53c0a918-ce7c-401e-98f9-1c60b3a723b3.

EXAMPLE 2

Get-AdminPowerAppRoleAssignments -EnvironmentName 3c2f7648-ad60-4871-91cb-b77d7ef3c239 -UserId 53c0a918-ce7c-401e-98f9-1c60b3a723b3

Returns all app role assignments within environment with id 3c2f7648-ad60-4871-91cb-b77d7ef3c239 for the user with an object ID of 53c0a918-ce7c-401e-98f9-1c60b3a723b3.

EXAMPLE 3

Get-AdminPowerAppRoleAssignments -AppName 4d1f7648-ad60-4871-91cb-b77d7ef3c239 -EnvironmentName 3c2f7648-ad60-4871-91cb-b77d7ef3c239 -UserId 53c0a918-ce7c-401e-98f9-1c60b3a723b3

Returns all role assignments for the app with ID 4d1f7648-ad60-4871-91cb-b77d7ef3c239 in environment 3c2f7648-ad60-4871-91cb-b77d7ef3c239 for the user with an object ID of 53c0a918-ce7c-401e-98f9-1c60b3a723b3.

EXAMPLE 4

Get-AdminPowerAppRoleAssignments -AppName 4d1f7648-ad60-4871-91cb-b77d7ef3c239 -EnvironmentName 3c2f7648-ad60-4871-91cb-b77d7ef3c239

Returns all role assignments for the app with ID 4d1f7648-ad60-4871-91cb-b77d7ef3c239 in environment 3c2f7648-ad60-4871-91cb-b77d7ef3c239.

Parameters

-ApiVersion

The api version to call with.

Type:String
Position:Named
Default value:2016-11-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AppName

Finds a specific ID.

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

-EnvironmentName

Limit apps returned to those in a specified environment.

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

-UserId

A object ID of the user you want to filter by.

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