set the user and application_id in server from attributes