only define user resource if not already defined