cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daniellemaree Helper III
Helper III

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
Highlighted
ChrisR Resolver III
Resolver III

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
Highlighted
ChrisR Resolver III
Resolver III

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
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,917)