set resource to user