[PATCH V2] server: rewrite to use all attributes for group in create_token