Export List of Users
Author: dhelmstetter
Publication Date: 2/26/2025 16:18
Hello there
Is there a way to conveniently export the current list of registered users within a FirstSpirit Installation? Preferably with extended variables like Registration Date, Active = yes/no, Used Email Address etc.
If there is no easy way, can someone tell me another efficient way to do so? I've tried using the users.xml file which is contained on the machine, but there seems to be no easy way to convert it to an easy-to-read excel table.
-
Author: hoebbel - 2/27/2025 7:31
Hello dhelmstetter,
I would use a script. For example like this:
import de.espirit.firstspirit.access.AdminService; import de.espirit.firstspirit.access.ServicesBroker; broker = context.getConnection().getBroker(); adminService = context.requireSpecialist(ServicesBroker.TYPE).getService(AdminService.class); allUsers = adminService.getUserStorage().getUsers(); for (user:allUsers) { context.logInfo("Login:" + user.getLoginName() + " /UserName: " + user.getName() + " /eMail: " + user.getEMail() + " /isActive:" + user.isActive()); }
Create a Server Schedule Entry (ServerManager=>Server/Properties=>Schedule management=>new entry with script action) and as script content e.g.:If it is needed more than once, it would make sense to create a csv file instead of the output in the log
Best regards,
Holger0 -
Author: dhelmstetter - 3/24/2025 9:15
Hello! Many thanks for the script. I tweaked it a little so it meets our expectations, but overall it worked just fine!
0 -
I would use a script
0
Please sign in to leave a comment.
Comments
3 comments