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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I add Azure AD ...
Power Apps
Unanswered

How do I add Azure AD user information to a Power App?

(0) ShareShare
ReportReport
Posted on by 104

Hi All

How do I add Azure AD user information to a Power App? I know how to use Office365Users, but it has limited fields to select from. I need to add more Azure AD user information to my Power App

My Office365User Code:
If(!IsBlank(Gallery1.Selected.Id),
Office365Users.UserProfileV2(Gallery1.Selected.Id).officeLocation)

 

I hope you can help.

Thanks

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    on at

    Hi , @PowerStar321 

    Do you mean you want to put the user information appended to a collection?

    If this , you can use the Collect() function to append the user's info to a collection. For more information, you can refer to :
    Collect, Clear, and ClearCollect functions - Power Platform | Microsoft Learn

     

    Best Regards,

    Yueyun Zhang

  • CU-21081202-4 Profile Picture
    104 on at

    Hi Yueyun,

    No, I want to put extra information like Fax number on to a Power App form, like First name and last name.


    Thanks

  • v-yueyun-msft Profile Picture
    on at

    Hi , @PowerStar321 

    Do you mean you want to get the other field in the return?

    You can try to use this code :
    With( {Data:Office365Users.UserProfileV2(Gallery1.Selected.Id)} , {officeLocation :Data.officeLocation , fullName : Data.displayName , Mail:Data.mail})

     

    Best Regards,

    Yueyun Zhang

  • CU-21081202-4 Profile Picture
    104 on at

    Hi Yueyun,

     

    The problem I have been asked to add the user Fax field and other user fields that I can view or select.

    Many thanks

  • v-yueyun-msft Profile Picture
    on at

    Hi , @PowerStar321 

    The Office365 object has no fax field, you can refer to :
    Office 365 Users - Connectors | Microsoft Learn

     

    You can try to add the dataverse user table to try to if there is the fax field you need in your side.

    vyueyunmsft_0-1709169422547.png

    LookUp(Users, 'Primary Email' =User().Email).fieldName
     

    Best Regards,

    Yueyun Zhang

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard