Correctly get the user group id