Skip navigation

REST API needs a convenient way to look up user-id (Released in 9.2)

score 12
You have not voted. Released

In order to query or manipulate an user account, the REST API requires the "user-id", which is the new-style id, a long gibberish string, not the old numeric id, or the id the user logs in with (called "user-name"). However, there is no easy way to find this piece of information. Typically, all we know is the login id (user-name).

 

The only way to convert user-name into user-id seems to be "Get Users On Site" (which in our case, will return several hundreds of users) and scan each user returned until we find the one we want. This is wasteful, ugly, and not even guaranteed to work (what if we don't know what site the user belongs to)?

Comments

Vote history