How to find users without token

#1

Hello,

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.

Thanks

0 Likes

#2

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.

Regards
Cornelius

0 Likes

#3

Hello Cornelius,

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

Best regards

0 Likes