cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
joeb
Level: Powered On

Login Functionality

Is there a way to set up user authentication through a login screen via the user's AD credentials and view that user's data only? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Login Functionality

In order to use any app within PowerApps, the user needs to be logged in to PowerApps. In your app, you can then filter the data that the user is seeing, by using the User() function to get the user information used to filter the data.

 

For example, if the data has the user's e-mail as one of the columns (e.g., 'Owner'), you can have a gallery whose Items property is set to

Filter(myDataSource, Owner = User().Email)

You can also save the user at the beginning of the app (e.g., in the app's OnStart property), so that it can be used throughout the app. You'd have this in the OnStart:

Set(me, User())

And the gallery items would be set to

Filter(myDataSource, Owner = me.Email)

View solution in original post

1 REPLY 1
Highlighted
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Login Functionality

In order to use any app within PowerApps, the user needs to be logged in to PowerApps. In your app, you can then filter the data that the user is seeing, by using the User() function to get the user information used to filter the data.

 

For example, if the data has the user's e-mail as one of the columns (e.g., 'Owner'), you can have a gallery whose Items property is set to

Filter(myDataSource, Owner = User().Email)

You can also save the user at the beginning of the app (e.g., in the app's OnStart property), so that it can be used throughout the app. You'd have this in the OnStart:

Set(me, User())

And the gallery items would be set to

Filter(myDataSource, Owner = me.Email)

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,658)