In relation to name lenghts.
It seems Kixtart 3.55 has a limitation that did not exist in ver3.2.
In the situation where you have a Global group name of more than 20 characters Kix falls over.
eg. If a user is associated with a global group where the global group name is 21 charaters or more the username variable will not be available during the login process. Therefore it's not possible to capture the @userid.
Enterprise Administrator does alow group names of more than 20 characters.

(another oddity is that if a script is run after login the @userid is available)
At present I have asked for all global group names be restricted to 20 Characters.
Any other suggestions.