generate user resource