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 Apps
Answered

AADUser Lookup

(0) ShareShare
ReportReport
Posted on by 19

I am using AADUser table as a Lookup column in another table but experiencing problems.

- The primary name in AADUser is not unique

- The records in AADUser include records for disabled accounts

Any suggestions as to how I can achieve an accurate user lookup? Many thanks.

I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @TonyHoll ,

     

    The below two columns in AAD User table should be useful for you to get an enabled unique user:

    vjefferni_0-1687340799403.png

     

    Best regards,

  • rfainter123 Profile Picture
    76 on at

    You will want to change the lookup view to filter out the disabled accounts. 

    • Go to make.powerapps.com and select the correct environment
    • Select Tables, then find AAD User
    • Select Views, then locate the AAD User Lookup View
      rfainter123_0-1687365045443.png

       

    • Next, change the filter by clicking Edit filters in the right pane:
      rfainter123_1-1687365170458.png

    • Add a row to your filter and make it look like this:
      rfainter123_2-1687365231437.png

    • Then Save and publish the view. Now only enabled accounts will show in the lookup
  • TonyHoll Profile Picture
    19 on at

    Hi rfainter123

    Thank you for your reply. I understood that the filter would not work as AADUser is a virtual table. In my tests, after publishing the lookup view with the filter, I still see both enabled and not enabled. My test is sing the lookup in a Table, Edit row. Is this a vild test. Be very grateful if you would confirm. Thanks

  • rfainter123 Profile Picture
    76 on at

    Hi TonyHoll,

    Your test does seem valid and just to be sure, I recreated it. Here I created the lookup on the User table, and filtered the lookup view of AAD Users to show only those whose first name is Yosef. As you can see, the lookup is only showing two records:

    rfainter123_0-1687455928404.png

    To troubleshoot, did you:

    1. Publish the lookup view?
    2. Select the lookup view in the related table's form?

     

  • TonyHoll Profile Picture
    19 on at

    Thanks for staying with me on this one rfainter123. I am new to Power Apps / Dataverse. I have published the lookup and other views with the filter set. My test though was as follows...

    Tables >> select table >> Open >> in 'columns and data'  search in the lookup column. This is where I see both enabled/not enabled. Is this test valid and which view will be used for the lookup. Really appreciate your ongoing help.

     

     

     

  • Verified answer
    rfainter123 Profile Picture
    76 on at

    Of course, happy to help! If I'm understanding correctly, you are viewing that lookup here:

    rfainter123_0-1687552556734.png

    If that's the case, then yes, you will not see the filtered lookup view, as those are configurable for forms in the UI. If you're trying to filter for users, then you would do that in the form editor. So from this page, select the main form that goes with the related table you're working with. In the form editor, add the lookup column into the form, then select the lookup view you modified. Save and publish and you should be good to go!

    rfainter123_1-1687552891247.png

     


    If you're working with a different use case, kindly provide some more details so I better understand.

  • Verified answer
    TonyHoll Profile Picture
    19 on at

    Hi rfainter123

    Thank you so much for your clear explanation and for staying with me on this. I now understand that the Table, Edit option does not use the lookup view and that this has to be achieved through a Form. So grateful for your patience. Best regards.

  • rfainter123 Profile Picture
    76 on at

    @TonyHoll you bet! Good luck 😀

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard