Get-AdminPowerAppEnvironmentRoleAssignment

Returns the environment role assignments for environments without a Common Data Service For Apps database environment.

Syntax

Get-AdminPowerAppEnvironmentRoleAssignment
   [-EnvironmentName <String>]
   [-UserId <String>]
   [-ApiVersion <String>]
   [<CommonParameters>]
Get-AdminPowerAppEnvironmentRoleAssignment
   [-EnvironmentName <String>]
   [-UserId <String>]
   [-ApiVersion <String>]
   [<CommonParameters>]

Description

The Get-AdminPowerAppEnvironmentRoleAssignment returns environment role assignments for environments without a Common Data Service For Apps database environment. This includes which users are assigned as an environment admin or environment maker in each environment. Use Get-Help Get-AdminPowerAppEnvironmentRoleAssignment -Examples for more detail.

Examples

EXAMPLE 1

Get-AdminPowerAppEnvironmentRoleAssignment

Returns all environment role assignments across all environments. where the calling users is an environment admin.

EXAMPLE 2

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

Returns all environment role assignments across all environments (where the calling users is an environment admin) for the user with an object ID of 53c0a918-ce7c-401e-98f9-1c60b3a723b3.

EXAMPLE 3

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

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

EXAMPLE 4

Get-AdminPowerAppEnvironmentRoleAssignment  -EnvironmentName 3c2f7648-ad60-4871-91cb-b77d7ef3c239

Returns all environment role assignments for the 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

-EnvironmentName

Limit roles returned to those in a specified environment.

Type:String
Position:Named
Default value:None
Required:False
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:False
Accept pipeline input:False
Accept wildcard characters:False