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 Platform Community / Forums / Power Apps / Return other user info...
Power Apps
Answered

Return other user info based off of selected value in People Picker

(0) ShareShare
ReportReport
Posted on by 112

I'm amazed nobody has needed to do this yet, and I've done extensive searching on Google.

 

I have a people picker using the Office365Users connecter in a Canvas app. It works fine and I search by email.

I then need to display any of the other account attributes based on whatever user has been selected in ComboBox1.

 

So for example I want to show the Department attribute in TextInput1 field based on whatever has been selected in ComboBox1.

 

Everything I have tried throws up an error. Does anyone know how I might go about solving this?

Categories:
  • JayMagness Profile Picture
    1,663 on at

    There is an office 365 connector and I use it a  lot

     

    Connect to Office 365 Users connection from Power Apps - Power Apps | Microsoft Learn

     

    Here is sample code from one of my startup segments on all my programs

     

    'pl-O365_accountenabled': Office365Users.MyProfileV2().accountEnabled,
    'pl-O3650_upn': "NA",
    'pl-O365PreferedLanguage': Office365Users.MyProfileV2().preferredLanguage,
    'pl-o365user': Office365Users.MyProfileV2().displayName,
    'pl-o365usertype': Office365Users.MyProfileV2().userType,

  • elfreddos Profile Picture
    112 on at

    Thank you for your reply. I'm not sure if you've understood my query. I have a working people picker.

     

    I want to show the Department attribute in TextInput1 field based on whatever has been selected in ComboBox1.

  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @elfreddos ,

    I suppose that items property of your combobox is something like: 

    Office365Users.SearchUser({searchTerm:Self.SearchText,top:100})

    The default property of the text input control should be:

    ComboBox1.Selected.Department

     What error do you receive ?

     

  • elfreddos Profile Picture
    112 on at

    @gabibalaban  Thank you. That worked, it' was my fault, at the end of the first line of code I had ).Mail so removed that and the ComboBox1.Selected.Department then worked without error.

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard