Get-AdminPowerAppEnvironmentRoleAssignment
Returns the environment role assignments for environments without a Common Data Service For Apps database environment.
Syntax
User (Default)
Get-AdminPowerAppEnvironmentRoleAssignment
[-EnvironmentName <String>]
[-UserId <String>]
[-ApiVersion <String>]
[<CommonParameters>]
Environment
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 00aa00aa-bb11-cc22-dd33-44ee44ee44ee
Returns all environment role assignments across all environments (where the calling users is an environment admin) for the user with an object ID of 00aa00aa-bb11-cc22-dd33-44ee44ee44ee.
EXAMPLE 3
Get-AdminPowerAppEnvironmentRoleAssignment -EnvironmentName 3c2f7648-ad60-4871-91cb-b77d7ef3c239 -UserId 00aa00aa-bb11-cc22-dd33-44ee44ee44ee
Returns all environment role assignments for the environment 00000000-0000-0000-0000-000000000000 for the user with an object ID of 00aa00aa-bb11-cc22-dd33-44ee44ee44ee.
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.
Parameter properties
Type: | String |
Default value: | 2016-11-01 |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-EnvironmentName
Limit roles returned to those in a specified environment.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-UserId
A object ID of the user you want to filter by.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.