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