refactor: replace groupname with key_name in UserGroup