This procedure is used with Advanced Single Sign-On. It is called each time a user logs in and serves to customize the user's account and permissions.
You are allowed to call SoftadminApi.User_InsertUpdate
if you need to modify the user but you must not change the username or disable the user.
You will find the user's group memberships in a temp table with group names.
CREATE TABLE #AdGroup
(
ADGroup varchar(8000)
);