Notifications
Announcements
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.
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
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
this didnt work:
I tried Department...
Office365Users.UserProfile("user.name@company.com").Department
Office365Users.UserProfile("Department").Department
No Go, Like a NOVA
Hi @SPS-DEV-22 ,
Yes - you can only find fields that exist in your AD.
@SPS-DEV-22 ,
I assume you used the user's actual email address.
We have 10K that work for the company... I can not do a single person's email address.
Sorry I am a bit lost here - what are you going to use to identify the user if not their email address ?
ok, let me ask this, if I put a person email address in the
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...
@SPS-DEV-22 ,8
Yes
Office365Users.UserProfile("fred.jones@smith.com").Department
will find the department that Fred Jones works in Smith Company.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268