0

I'm just wondering if it is possible to display the personal information of the user currently logged in an my 'User Profile' section of my app?

The first image attached is the current list I have created and the second image is the how I would like the information displayed.

Any help on how to get the personal information associated with the username and password to be displayed would be appreciated :)

List:

enter image description here

App:

enter image description here

3
  • Can you confirm - are you trying to show the current user information from "list" or from Azure Ad profile? If from list, what is the unique column in list using which you can identify the user, is it "Email"? Commented Feb 21 at 3:56
  • Hi Ganesh, yes I am trying to how the current user information from the "list". I am not sure what you mean by 'unique column', but I could use their email addresses to uniquely identify them. Thanks
    – E56
    Commented Feb 22 at 20:51
  • Did you try below solution? Commented Feb 23 at 2:37

1 Answer 1

0

If you are using a "Form" control in your Power Apps to show the information, you can set the Item of form control with formula like this:

LookUp(SharePointListName, EmailColumnFromList = User().Email)

Use correct list name and column name in place of SharePointListName and EmailColumnFromList respectively.

Then you can set (or confirm) Default property of "Data card" controls inside the "Form" control to respective column values using formula like:

ThisItem.Title

and

ThisItem.password

You can also get the current user record from list in OnStart of App and store in global variable like:

Set(gvUserProfileFromList, LookUp(SharePointListName, EmailColumnFromList = User().Email))

Then later you can use this variable anywhere in the app.

For example: If you want to show the full name of user in a "label" control, then you can set the Text property of label control to:

gvUserProfileFromList.Firstname & " " & gvUserProfileFromList.Surname

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.