Hi Hans,
The ID’s returned as ClientID for a JSClient is a different value as the ID displayed on the admin page (for security purposed), so you cannot compare the two.
To achieve the same in 5.2.15 the “easiest” way would be to store the ClientID in a table on creation and in other clients read it form the table.
Paul