Hi PowerApps Community,
I am currently working with a SharePoint list and using SharePoint groups to handle which screen is displayed to the user.
e.g. I have a SharePoint group called HR and in the App OnStart property I check that the user is in that group or not:
Set(IsUserSPHRGroup, !IsBlank(LookUp(Groups, Title = "SalaryReview-HR")));
this returns true/false depending on whether the user is in that security group or not. If true, the HR screen is displayed.
We are currently migrating this project across to work with Dataverse for Teams and I was wondering what would be the equivalent to this or how this would be acheivable?
Thanks!!
Solved! Go to Solution.
Hi @Rajeey3, this can be achieve quite easily in Dataverse for Teams. Each SharePoint list would be a table. User management is built-in Dataverse for Teams with access roles. In the app on startup, you can have an expression like this:
Set(IsUserSPHRGroup, Office365Users.UserProfileV2(User().Email).Department = "HR")
To configure your app, you can do within the Power Apps Studio: https://docs.microsoft.com/powerapps/teams/understand-power-apps-studio
Hope this helps!
Hi @Rajeey3, this can be achieve quite easily in Dataverse for Teams. Each SharePoint list would be a table. User management is built-in Dataverse for Teams with access roles. In the app on startup, you can have an expression like this:
Set(IsUserSPHRGroup, Office365Users.UserProfileV2(User().Email).Department = "HR")
To configure your app, you can do within the Power Apps Studio: https://docs.microsoft.com/powerapps/teams/understand-power-apps-studio
Hope this helps!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
29 | |
23 | |
19 | |
12 | |
11 |