Receiving empty data from WebAPI when searching existing users
I am currently building a python script that integrates with the TDX WebAPI, but I've run into an issue regarding the /TDWebAPI/api/people/lookup (Lookup) and /TDWebAPI/api/people/search (Search) endpoints. When I use either of these endpoints I only receive back '[]' as the content of the HttpResponse. I am testing on the sandbox and I have verified that the data I am looking for exists and I am accessing the API with valid credentials. I have tested this on both our sandbox and production instances.
- Lookup
- params
- searchText
- maxResults
- I'm sending
- method = GET
- https://mydomain/SBTDWebApi/api/people/lookup?searchText=Testing&maxResults=50
- params
- Search
- params
- json containing data to search on
- I'm sending
- method = POST
- https://mydomain/SBTDWebApi/api/people/search
- json = {"SearchText": "Testing")
- params
Answer (1)
Hi Harrison,
Which user account are you authenticating into the API with in your sandbox environment?
Assuming your call is structured properly, the only reason those calls would fail would be if the user you authenticated with doesn't have People app access.
Sincerely,
Mark Sayers
Sr Support Consultant, CS
I have received data from these to endpoints before, but I am no longer able to do so. - Harrison Fleisher Tue 4/25/23 9:28 AM
For reference: https://mydomain/SBTDWebApi/api/people/lookup?searchText=Testing&maxResults=50 - Harrison Fleisher Tue 4/25/23 10:12 AM
Have you been able to use Postman or Fiddler to get authenticated and make this call? I had no trouble getting results when I tested to my own environment with a normal user account. If you'd like to get into account permission specifics please submit a support ticket so we can talk more freely. https://solutions.teamdynamix.com/TDClient/1965/Portal/Requests/ServiceDet?ID=2154 - Mark Sayers Tue 4/25/23 10:49 AM