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 / Needing to try and pul...
Power Apps
Unanswered

Needing to try and pull user profile information based on AD LastName, FirstName

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

 

I have a PowerApps form that is connected to a SharePoint Online list (please reference below):

image.png

 

The Default value for the Email Address field is:
First(Office365Users.SearchUser({searchTerm:Name.Text})).Mail

 

The Default values for Job Title and Department are similar, except the end of the string is replaced by .JobTitle and .Department.

 

This works great to return information for most users, but our organization has a group of users whose names follow a different naming standard, and their Display Names are ABCLastName, FirstName, and email addresses are FirstName.ABCLastName@Organization.com.

 

So when I use the above form to return user data, in order for the search to work, I'd have to enter in ABCLastName, FirstName. 

 

What I'm trying to do is to be able to return user data by only entering the LastName, FirstName. I figure it should be possible to query our AD for the user Last name and First name fields. Does anyone know how best to go about achieving this? I've spent a bit of time trying to find out a solution, but have so far been unable to do so.

 

Thanks in advance, everyone!

Categories:
I have the same question (0)

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard