get and delete api request for user and group resource