How to find users without token


We are looking for a way to search for users that dont have a token and / or to export a list of the user - token relations.


Hello Bernhard,

There is no easy/easy way to do this, since privacyIDEA roughly does not care a lot about users.
E.g. you could connect your complete LDAP and only issue a few tokens to a few users.

So you would have to fetch all users, then fetch all tokens and subscract the owners of the tokens from the first list.

The token relations are stored in the database table token.


Hello Cornelius,

thanks for the quick reply. We’ll have a look at the token table.

Best regards