Display the list of tokens for user

Hello everyone, I am using API GET /token/ for getting list of existing tokens for user. When I pass the field “user” in query parameters as mentioned in documentation, it gives 400 Bad Request with error message “ERR904: The user can not be found in any resolver in this realm!”.

But if I pass field “userid” in place of “user” it works fine. it gives the list of tokens in response for that user.

Is there any change made in API, in place of “user” can I pass “userid”?. below are some reference screenshots.


Appreciate all the help!

You are supposed to pass the username in the parameter user in the GET /token request.

username could be swat@realm1.

This is the same through all the API.