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 / Get User.DisplayName b...
Power Apps
Answered

Get User.DisplayName by JobTitle and OfficeLocation

(1) ShareShare
ReportReport
Posted on by 5
Hi All, 
I'm creating a form in powerapps and for approvals I need the name of the "Operations Manager" in either one the OfficeLocation "Sydney", "Brisbane" and "Perth". 
 
LookUp(
        Office365Users.SearchUser({searchTerm: ""}),
        JobTitle = "Local IT" && OfficeLocation = "Maarheeze"
    ).DisplayName
 
This works but has limit of 100 users and in those 100 users non have "office location" of syd, bris, and perth and none are "Operations Manager".
Categories:
I have the same question (0)
  • Verified answer
    developerAJ Profile Picture
    4,763 on at
    1. Use Graph API or Power Automate to get all users with the job title

    Office365Users.HttpRequest(
    "https://graph.microsoft.com/v1.0/users?$filter=jobTitle eq 'Operations Manager'",
    "GET",
    ""
    )

    1. Process the response in Power Apps (via JSON()) or Power Automate.

    2. Filter locally for officeLocation in your desired values (e.g., "Sydney", "Brisbane", "Perth").because officelocation is not filterable using graph


    3.  

    This approach bypasses the Graph API limitation, giving you the correct subset of users for your approval logic.

     

    If this solution helped you resolve your issue, kindly mark it as accepted — it makes it easier for others to find and also closes the discussion. If you found it useful, a Like ❤️ would be greatly appreciated!

    🤝 Let’s connect on LinkedIn || 📘 Explore more on my articles

  • developerAJ Profile Picture
    4,763 on at

    Please let us know if the issue still exists. If it has been resolved, kindly close the thread by accepting the solution

     

    If this solution helped you resolve your issue, kindly mark it as accepted — it makes it easier for others to find and also closes the discussion. If you found it useful, a Like ❤️ would be greatly appreciated!

    🤝 Let’s connect on LinkedIn || 📘 Explore more on my articles

  • WarrenBelz Profile Picture
    155,283 Most Valuable Professional on at
    I will throw in this - I cannot test it as I do not have a tenant that big, but it may work for you.
    Filter(
       Office365Users.SearchUserV2(
          {
             IsSearchTermRequired: false,
             top: 999
          }
       ).value,
       JobTitle = "Operations Manager" && 
       OfficeLocation in ["Sydney", "Brisbane", "Perth"]
    ).DisplayName
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,055

#2
Valantis Profile Picture

Valantis 666

#2
11manish Profile Picture

11manish 666

Last 30 days Overall leaderboard