api created to edit and view the users and groups