switch users from resource to api service