Support As-User header

Added support for performing all operations with the As-User header