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

Autopopulate users details from login

Hi

 

I was wondering if its possible to autopopulate a field i,e Email for a user based on there login credentials?

 

So when they go to the app there details are preloaded on the form. This wouldnt be using a people picker field

 

I know this was done in Infopath but is it achievable in powerapps?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisR
Level 8

Re: Autopopulate users details from login

To get the email of the logged in user try:

 

User().Email

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-user

 

 

If more user information is needed, the Office365Users connector will need to be used.

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-users

 

Example:

Office365Users.MyProfile().JobTitle

 

Hope it helps,

 

Chris - IW Mentor PowerApps Training

View solution in original post

1 REPLY 1
ChrisR
Level 8

Re: Autopopulate users details from login

To get the email of the logged in user try:

 

User().Email

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-user

 

 

If more user information is needed, the Office365Users connector will need to be used.

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-users

 

Example:

Office365Users.MyProfile().JobTitle

 

Hope it helps,

 

Chris - IW Mentor PowerApps Training

View solution in original post

Helpful resources

Announcements
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,159)