< Back

Set-AdminPowerAppRoleAssignment

Sat Jan 18, 2020 3:51 pm

NAME Set-AdminPowerAppRoleAssignment



SYNOPSIS

sets permissions to the app.





SYNTAX

Set-AdminPowerAppRoleAssignment -AppName <String> -EnvironmentName <String> -RoleName <String> -PrincipalType

<String> -PrincipalObjectId <String> [-ApiVersion <String>] [<CommonParameters>]



Set-AdminPowerAppRoleAssignment -AppName <String> -EnvironmentName <String> -RoleName <String> -PrincipalType

<String> [-PrincipalObjectId <String>] [-ApiVersion <String>] [<CommonParameters>]





DESCRIPTION

The Set-AdminPowerAppRoleAssignment set up permission to app depending on parameters.

Use Get-Help Set-AdminPowerAppRoleAssignment -Examples for more detail.





PARAMETERS

-AppName <String>

App name for the one which you want to set permission.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-EnvironmentName <String>

Limit app returned to those in a specified environment.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-RoleName <String>

Specifies the permission level given to the app: CanView, CanViewWithShare, CanEdit. Sharing with the entire

tenant is only supported for CanView.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PrincipalType <String>

Specifies the type of principal this app is being shared with; a user, a security group, the entire tenant.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PrincipalObjectId <String>

If this app is being shared with a user or security group principal, this field specified the ObjectId for

that principal. You can use the Get-UsersOrGroupsFromGraph API to look-up the ObjectId for a user or group in

Azure Active Directory.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ApiVersion <String>



Required? false

Position? named

Default value 2016-11-01

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-AdminPowerAppRoleAssignment -PrincipalType Group -PrincipalObjectId

b049bf12-d56d-4b50-8176-c6560cbd35aa -RoleName CanEdit -AppName 1ec3c80c-c2c0-4ea6-97a8-31d8c8c3d488

-EnvironmentName Default-55abc7e5-2812-4d73-9d2f-8d9017f8c877



Give the specified security group CanEdit permissions to the app with name 1ec3c80c-c2c0-4ea6-97a8-31d8c8c3d488











RELATED LINKS