Impersonation for the api

Change-Id: If1b3a07873fb95e40c9b43cd7e56db3ff980d836
Merge "Impersonation for the api"