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