Possible API bug?
I am using GET: https://my.support.domain/TDWebApi/api/people/lookup?searchText={{userEMPLID}}&maxResults=1
To return the user with Organizational ID = userEMPLID above
When I send my userEMPLID it returns a different user. I checked and found that the user returned has an Organizational ID (userEMPLID) similar to mine, but it is not identical.
e.g. not the actual userEMPLID numbers but here is the similarity:
GET userEMPLID 000123456
Response Body userEMPLID 001234567
Does that make sense?
Answer (1)
Hi Scott,
This is exactly fully expected. It is a "LIKE" search, not an exact match, which equates to an SQL LIKE wildcarded on each side of the search phrase.
So anything that contains the phrase being searched should return.
Sincerely,
Mark Sayers
Sr Support Consultant, CS
GET: https://my.support.domain/TDWebApi/api/people/lookup?searchText={{userEMPLID}}&maxResults=1
What would we search for instead of the exact Organization ID or email address to find the correct UID? - Scott Cory Wed 1/25/23 12:02 PM