fixes #3892 - process REMOTE_USER_GROUP_N and REMOTE_USER_GROUP_#, add user to external user groups.