Get token assigned user through serial number

I need to create a table which shows the details of the user assigned to a token after the get-serial number proof.


This table is in italian, i have to populate the fields but i am struggling to find the object (variable name) to insert in it. Anyone has ever did that?

Why do you want to do this?
What do you try to achieve?
(I want to understand your situation)

It could be, that the user object does not exist in this context.
You would have to create a GET /token call to get the information, you might even need to do a GET /user/ call to get the user details like telephone number.

hi cornelius, in fact the token info(username of the user assigned to the token. realm and description)don’t exist in that context …this could be retrieve in the token/details url, if you click on the serial number link…but i need to populate this table in the token/getserial url context…for instance the loggedInUser details exist in token/getserial…

it’s just a client request to have a more intiuitive user interface…if it is possible

This is what I was telling you in my previous post.

If you could elaborate more than only “a clients request” (which client, anyways?), then this might be useful to me in turn.

Hi, the client is someone who wants customize the app…i was asked to create a table just below the serial number obtained through the otp value and return user details assigned to that token…the client is a big international bank anyway

Hm, read
https://privacyidea.readthedocs.io/en/latest/faq/customization.html
take care to make your customization update resistent.

Ok, thanks…i will try to add the tokentoken.username, token.realm variables in the getserialControllers.js scope…or modify the view in the .py code

Bad idea.
You break all the updatability.