Change API for User to take metadata and determine the name.