cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
machammarj
Frequent Visitor

Search for users (V2) - Part of name

Hi !

I've got from "Parson JSON" a name like: Michael Donalds.

 

When I try to use Search for users (V2) it cannot locate the user because his name is: Michael Douglas Donalds.

 

Could you please help me ?

 

Regards

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Community Champion
Community Champion

The reason why the above does not work in your case is that the user has a display name that contains a middle name such as:

ekarim2020_6-1626169253852.png

ekarim2020_9-1626169642314.png

(The above is from my Dev tenancy, not a real user!)

Is that correct?

If that is so, we can modify the above flow and try matching on the Given name and surname?

Starting with the following name "Adele Vance" and trying to match "Adele Douglas Vance":

ekarim2020_3-1626168880628.png

Search for users based on, for example Firstname (or LastName):

ekarim2020_12-1626170359522.png

Trying to matching on the Given name and surname:

ekarim2020_4-1626169003656.png

Running the test:

ekarim2020_8-1626169554426.png

Ellis

View solution in original post

4 REPLIES 4
ekarim2020
Community Champion
Community Champion

Can you search on the email address? This would be the preferred method as it is unique and will return only one record if a match is found.

Ellis

v-bofeng-msft
Community Support
Community Support

Hi @machammarj :

The point is that "Michael Donalds" is not a part of "Michael Douglas Donalds" and "Search for users" does not support fuzzy matching.

If you search "Michael" or "Donalds" or "Michael Douglas" will get the result but can not search "Michael Donalds".

But I have an alternative:

vbofengmsft_2-1626163689485.png

vbofengmsft_3-1626163794131.png

Result:

vbofengmsft_1-1626163622813.png

 

Best Regards,

Bof

ekarim2020
Community Champion
Community Champion

Try something like this:

ekarim2020_1-1626166985896.png

Running the above in my Dev tenancy returns the user Adele Vance:

ekarim2020_2-1626167165109.png

Ellis

ekarim2020
Community Champion
Community Champion

The reason why the above does not work in your case is that the user has a display name that contains a middle name such as:

ekarim2020_6-1626169253852.png

ekarim2020_9-1626169642314.png

(The above is from my Dev tenancy, not a real user!)

Is that correct?

If that is so, we can modify the above flow and try matching on the Given name and surname?

Starting with the following name "Adele Vance" and trying to match "Adele Douglas Vance":

ekarim2020_3-1626168880628.png

Search for users based on, for example Firstname (or LastName):

ekarim2020_12-1626170359522.png

Trying to matching on the Given name and surname:

ekarim2020_4-1626169003656.png

Running the test:

ekarim2020_8-1626169554426.png

Ellis

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (3,072)