Howto restrict client replication if version < 190

Database-Z on server-A, user’(s) with local replicas and I want to prevent the users running back level Notes Clients from being able to replicate database-Z. Does anyone know of a method to restrict replication if user is running a specific client version, without having to turn-off the ACL option “Replicate or Copy documents” option.

thank you.

Subject: Howto restrict client replication if version < 190

The following will bounce those clients that are not at version 6.

BE-AWARE that adding the following formula to the database postopen event will make some users angry. Why? Lets say that

the said formula has been added; John who’s running notes Client v57a launches (attempts to open) the database on Server,

he is presented with the prompt and that session is closed, that’s ok but then John decides to replicate and proceeds to open his

replica but canNOT (he’s informed to upgrade his client). … This will indeed force those running less-than v6 clients to upgrade.

Database Resources → Database Script → PostOpen

@If(@TextToNumber(@Version) < 190; @Prompt([OK];“Upgrade Notes Client to latest version”;“Your Notes Client must be upgraded to the latest version before access to this is granted. Contact the Administrator if you have questions.”):@Command([FileCloseWindow]) ;“” )

We may not want to be so brutal (locking the user out of their replica), made a minor modification to the formula. So that when user running client less-than v6 and the database

is on server to notify the user that they must upgrade and lock them out, and if database is on local do nothing.

@If(@Subset(@DbName;1) !=“” & @TextToNumber(@Version) < 190; @Prompt([Ok];“Upgrade Notes Client to latest version”;“Your Notes Client must be upgraded to the latest version before access to this is granted. Contact Aministrater if you have questions.”):@Command([FileCloseWindow]) ;“” )

Maybe, we want to notify the user accessing their local replica that they need to upgrade but don’t lock them out.

@If(@Subset(@DbName;1) !=“” & @TextToNumber(@Version) < 190;

@Prompt([Ok];“Upgrade Notes Client to latest version”;“Your Notes Client must be upgraded to the latest version before access to this is granted. Contact Administrator if you have questions.”):@Command([FileCloseWindow]) ;@Subset(@DbName;1) =“” & @TextToNumber(@Version) < 190;

@Prompt([Ok];“Upgrade Notes Client to latest version”;“Your Notes Client needs to be upgraded to the latest version. Contact Administrator if you have questions.”) ;“” )

Subject: Howto restrict client replication if version < 190

Is it just one database, or could you maybe block access to the entire server if the clients aren’t at a certain level? If the latter, you could set that in a Configuration document for that server.

Subject: RE: Howto restrict client replication if version < 190

Greg, thanks for the prompt reply. Just one database, I don’t want to restrict access but just prevent the user from performing a replication (push) if their client is a specific version. On the server, database-Z; I thought about using the Replication settings (Advanced) “documents by selection formula”, to control who (client version)can push to the server but that did not work.

SELECT @If(@TextToNumber(@Version) < 190; @False; @All)

Subject: RE: Howto restrict client replication if version < 190

A client once did something similar, and I don’t have the code and am not a programmer myself, but maybe this idea will spark something you can do.

They had an app that they did not want anyone to replicate locally, though some had already. They wrote something that, upon opening the database, checked to see if it was running locally or from the server. If running locally, it prompted the user with a message box stating that the db could not be opened locally, and then it closed when “OK” was clicked. Maybe you could something similar.

Sorry for no code, but maybe that idea will help.

Also, do you know what users have the versions earlier than 190? If so, how about a group to which you don’t give replication rights?