Verify that the user principal name contains the string you have in the search term field. Since your search term is text, the string() function isn't necessary.
It's important to note that the search term looks for matching strings across multiple fields within the Office 365 user directory:
The search term can be a partial string, meaning it searches for any part of the string within specific fields. However, there are some caveats. To illustrate the caveats I'll be using this demo user's profile:
Partial Matches:
In this example, if you use jess as the search term—it will return all users with "Jess" anywhere in the specified fields (e.g., "Jessica Murray").
Beginning of Words:
The search is more effective when the term matches the beginning of words in the fields. Using murr in the search field will find this user because it matches the start of Murray.
Not Anywhere in the String:
It doesn't search for the term anywhere in the string. Using ray will not return this user because "ray" is not at the beginning of a word.
In the meantime, if you'd like to learn more about the Filter Array action, you might be interested in the YT Tutorial I've linked below:
In this video tutorial I’ll show you 3 practical ways to use the Filter Array action and how to use it properly.
1️⃣ Cross-Referencing Data
2️⃣ Filtering by Key
3️⃣ Substring Matching
Did you know that the Condition action has a limit of 10 conditions? Although it might look like the Filter Array action can only accept one condition—this is not true. By using the advanced mode you can enter multiple conditions into a Filter Array action with an expression.
IN THIS VIDEO:
✅ 3 Ways to Use the Filter Array Action
✅ How to use the Scope Action to Group Actions
✅ How to Check the Number of Items returned from a Filter Array Action
✅ How to Cross-Reference Data in Excel with a SharePoint List
✅ How the Filter Array Action Works
✅ How to Access the Dynamic Content from a Filter Array Action
✅ How to Filter Items by a Key
✅ How to Filter Items by Matching a Substring
✅ How to Use Multiple Conditions in a Filter Array Action
Hope this helps!
Consider giving me a
❤️ if you liked my response!
👉 Level up your Power Automate skills by checking out my tutorials on
YouTube
👉 Tips and Tricks on
TikTok and
Instagram