cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rajeey3
Helper I
Helper I

Display different Screens based on User - Dataverse for Teams

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!!

1 ACCEPTED SOLUTION

Accepted Solutions
EricRegnier
Super User
Super User

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!

View solution in original post

1 REPLY 1
EricRegnier
Super User
Super User

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!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (2,638)