web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Office365Users

(0) ShareShare
ReportReport
Posted on by 65

I have a form, and I would like some datacards to be filled in automatically with the data of the logged in user using the office365 connector, and if the logged in person is filling out the form for someone else, the DatacardUser has the option for the person to search the user and when selecting it, the other datacards are updated with the correct user data.

 

For example:

DatacardUser: display name of logged in user

DatacardJobTitle: Jobtitle logged in user

 

My datacard is combobox

Categories:
  • PowerNuggets Profile Picture
    360 on at

    hi @hgartner 

    1. Use office365users Connector

    PowerNuggets_0-1688216886293.png

     

    2. Capture the email of the user you want to fetch their details

     

    3. Then you can get the details of any user by using the User Profile function an pass the User Email to it as shown below.

     


    Office365Users.UserProfile(userEmail).City
    Office365Users.UserProfile(userEmail).CompanyName
    Office365Users.UserProfile(userEmail).Country
    Office365Users.UserProfile(userEmail).Department
    Office365Users.UserProfile(userEmail).DisplayName
    Office365Users.UserProfile(userEmail).GivenName
    Office365Users.UserProfile(userEmail).Id
    Office365Users.UserProfile(userEmail).JobTitle
    Office365Users.UserProfile(userEmail).Mail
    Office365Users.UserProfile(userEmail).MailNickname
    Office365Users.UserProfile(userEmail).mobilePhone
    Office365Users.UserProfile(userEmail).OfficeLocation
    Office365Users.UserProfile(userEmail).PostalCode
    Office365Users.UserProfile(userEmail).Surname
    Office365Users.UserProfile(userEmail).TelephoneNumber
    Office365Users.UserProfile(userEmail).UserPrincipalName
    Office365Users.UserProfile(userEmail).AccountEnabled
    Office365Users.UserProfile(userEmail).BusinessPhones

     

    if this solves your requirements, mark the post as solved and consider giving a kudos, thanks

     

    Kind Regards,

  • Verified answer
    developerAJ Profile Picture
    4,763 on at

    ComboBox :

     

    Items: If(IsBlank(Self.SearchText),Office365Users.SearchUser(), Office365Users.SearchUser({searchTerm:Self.SearchText}))

    DefaultSelectedItems: First(Office365Users.SearchUser({searchTerm:User().Email}))

     

    DatacardUser[Default] : ComboBox.Selected.DisplayName

    DatacardJobTitle[Default]: ComboBox.Selected.JobTitle

    These two datacard should be text input

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard