formatting fixed and different return type for authentication with groups