We have our web pages integrated with telligent user REST API from long time. Whenever a new user registers for our web page, we provision an account in telligent with the same userId with which he registered for our web site. When required, we make use of show User REST API to display the profile fields such as avatar for profile picture etc...
Recently we come across an issue when one of our customers registered with the username 732 which is a number. Account provisioning in telligent worked fine for him, but show User REST API always returning "User not found" error. This is because the API misunderstanding the username as telligentId just because it is an integer. Can some one suggest an easy way to resolve this issue.
Using "List user API with Usernames as queryparam" instead of "show User API" is one of the solutions that will fix this issue as far as i understand, but that solutions requires a bigger change at our side. I am looking for other alternatives.
Hi Rich, The search API you suggested is working fine. The response is very similar to that of "list users API" : /api.ashx/v2/users.json?Usernames=732 Is there any difference between the two (search API and list API). Which one do you suggest? As I already understand from the replies that I need to stop using existing get USER API (to suit our requirement), I will go with one of these.
Hi Rich. This looks like an old post, but I'm dealing with something similar and I'm running into some interesting results. We're running Telligent 7.6
Using this API call causes Telligent to confuse the username for a userid, (which is the entering argument.)
So instead, we use the idea of using this API call:
This works, however, it doesn’t successfully get all users. So, if we add IncludeHidden=true:
We get most users. There are still some users that we’re noticing we cannot successfully get from Telligent using the “workaround” method.
Do you know why, for example, this API call would return a user:
But this one won’t?
I know that “Charlie_Bucket” has some columns in cs_Users that are different than other users, but I thought IncludeHidden=true would get us all users, as the documentation states.
I hope you're still around to see this. Thanks!
Powered by Telligent Community