web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

Mange Permission of Power Apps using PowerShell

Dhruvin Shah Profile Picture Posted by Dhruvin Shah 57

Welcome to one more Episode of Power Apps with PowerShell. As an admin, it is a very tedious and time-consuming task to maintain Permission for each Power Apps available in the environment. Now, Admins can manage Power Apps Permissions using PowerShell. During this session, I will explain how one can manage Power Apps Permission with PowerShell. The commands used to achieve this are very simple and very easy.

 

First, we will connect our Power Apps with the Admin account. Once we set up the connection, we will execute one admin command which will assign permission (Set-AdminPowerAppRoleAssignment) and Role with PowerShell. If we want to remove permission for a specific users from Power Apps, we can achieve that with the help of one more PowerShell Command which is Remove-AdminPowerAppRoleAssignment.

 

During this video we will learn the following concepts:
Role Management in Power Apps with PowerShell
Manage Roles in Power Apsp
Remove User Permission in Power Apps
Add User Permission and Role in Power Apps

*******************************

Below is a list of PowerShell commands used for this video:
Add-PowerAppsAccount

Get-UsersOrGroupsFromGraph

Set-AdminPowerAppRoleAssignment -PrincipalType User -PrincipalObjectId ((GUID for User)) -RoleName CanView -AppName ((APP ID)) -EnvironmentName ((Environment ID))

Remove-AdminPowerAppRoleAssignment -RoleId ((Object ID)) -EnvironmentName ((Environment ID)) -AppName ((App ID))
*******************

Chapters:
00:00 Start
01:15 Open Windows PowerShell ISE
02:00 Add Power Apps Account
02:19 Change Power Apps User Permission
02:55 Syntex AdminPowerAppsRoleAssignment
04:05 Set Parameter for PowerShell Command
04:20 Get User Object ID using PowerShell
07:00 Execute Command
07:30 Check Outcome
08:51 Remove Admin PowerApp Syntex
10:10 Execute Command to Remove Admin Permission!
10:44 Summary
11:15 Subscribe!

 

References:

How to get started with PowerApps PowerShell
https://youtu.be/zEuiwmeJen0 

 

Set PowerApps Roles
https://docs.microsoft.com/en-us/powershell/module/microsoft.powerapps.administration.powershell/set-adminpowerapproleassignment?view=pa-ps-latest 

 

Remove PowerApps Role
https://docs.microsoft.com/en-us/powershell/module/microsoft.powerapps.administration.powershell/remove-adminpowerapproleassignment?view=pa-ps-latest

 

#PowerApps #PowerShell #PowerPlatform #PowerAppsPowerShell #PowerPlatformPowerShell #DigitalDhruvin #DhruvinShah #PowerAddicts #PowerAppsWithDhruvin #PowerAppsbeginner

Categories:

Comments