Hello to everyone!
I have a little question to you. Can I get in LS list of database current users (who is in the database now)? I need to know: Is there any user in database or not.
For my script I have to check the absence of users in another database, and if there is no user in this another database, I can continue my script.
Any ideas?
Thank you for your help,
Michael Halisov
Subject: Database current users
Michael,
to my understanding you can’t do this with Lotusscript.
However, this information is available on the Domino Administrator client so there may be some way to access this info, but most likely through the API and not through Lotusscript.
Although I don’t know what you intend to do, think of the following possible issues:
-
people could open the database after your script checked access to the db, and while it still is running
-
there may be multiple replica copies of the database which you can’t check. This might probably interfere with any document updates done by your script
-
there is no feasible way of locking the whole database while the script is running
An alternative approach would possibly be to use either design locking or document locking on your database, depending what the script does.
If you’re accessing documents with the script, consider locking the documents before the script works on them, then unlock them again.