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 to get Active Dire...
Power Apps
Unanswered

How to get Active Directory information in to a form?

(0) ShareShare
ReportReport
Posted on by 516

I'm trying to use user().<some field>   I can get the User().FullName how ever I can not get any other information.

 

How do I get the Active Directory information pulled into form fields.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @SPS-DEV-22 

    As an example - Company

    Office365Users.UserProfile("user.name@company.com").CompanyName

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • SPS-DEV-22 Profile Picture
    516 on at

    there are like 3 fields on 0365. I need additional fields than what I seem to be able to find, does that mean I need to get the team to update it

  • SPS-DEV-22 Profile Picture
    516 on at

    this didnt work:

    Office365Users.UserProfile("user.name@company.com").CompanyName

    I tried Department... 

     

    Office365Users.UserProfile("user.name@company.com").Department

     

    Office365Users.UserProfile("Department").Department

     

     

    No Go, Like a NOVA

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @SPS-DEV-22 ,

    Yes - you can only find fields that exist in your AD.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @SPS-DEV-22 ,

    I assume you used the user's actual email address.

  • SPS-DEV-22 Profile Picture
    516 on at

    We have 10K that work for the company... I can not do a single person's email address.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @SPS-DEV-22 ,

    Sorry I am a bit lost here - what are you going to use to identify the user if not their email address ?

  • SPS-DEV-22 Profile Picture
    516 on at

    ok, let me ask this, if I put a person email address in the 

    Office365Users.UserProfile("user.name@company.com").Department

     

    this doesnt work either

    Office365Users.UserProfile("user.name@company.com").UserName

     

    it is blank.. I think I need to get with our 0365 admin... 

     

    "user.name@company.com"

    Do I need to put a user name here?  as I got 10K users...

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @SPS-DEV-22 ,8

    Yes

    Office365Users.UserProfile("fred.jones@smith.com").Department

    will find the department that Fred Jones works in Smith Company.

  • SPS-DEV-22 Profile Picture
    516 on at

    I need the code to find the 9999 other employees, not just Fred...

     

    I found this:
    Office365Users.UserProfile(User().Email).<'code item'>

     

    problem is the info I want is not available.

     

     

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard