Get user id by Rest Api
Hi!
How can I get my userId (having the username and password) via Rest call?
Already tried this: http://myserver/bonita/API/identity/user?username="+user+"&password="+pass
And it returned all the users "under" my administration but not my own.. :(
thanks in advance, best regards
1 answer
Hello, you need to do a search with your username as a search parameter, and it would look something like this:
http://localhost:8080/bonita/API/identity/user?f=userName=yourUsername
where yourUsername is your actual username (that you will concatenate from your user variable, if I understand correctly). This would return you the entire user object, including id attribute. Hope this helps, Haris