User impersonation

    Impersonation can be useful for testing and troubleshooting, or for allowing system services to safely act as a user.

    To allow one user to impersonate another, add the following to :

    In a similar fashion, add the following to enable transport layer impersonation: