In my gallery, I only want to list "real users" - so no shared mailboxes, admin accounts etc. I filter by looking to see if the users have managers, which works OK to exclude the unwanted accounts, except that I get errors logged in the Power Apps interface. I think that's because the Manager function returns an error (404) when there is no manager.
This is my code:
If(!IsBlank(Trim(TextInputSearchUser.Text)),
Filter(Office365Users.SearchUser({searchTerm:Trim(TextInputSearchUser.Text)}), !IsBlank(Office365Users.Manager(Id))))
Should I just accept the errors (they don't appear to the end user I think), or is there a neater way?
Thanks
T