There may be a requirement to have the authenticated user information displayed in the HTTP header (for example if the upstream device needs to know user details for accounting purposes).
There is no pre-defined function for this on the Edge SWG (ProxySG)/ASG, however you can enable this header using CPL code or through VPM.
Add the following CPL code to the local policy file to enable this header:
define action AddXAuthHeader
set(request.x_header.X-Authenticated-User, "$(user)")
end action AddXAuthHeader
<Proxy>
authenticated=yes action.AddXAuthHeader(yes)
For more information on how to add CPL code to the local policy file please see this KB article: How do I add CPL to a local policy file on the Edge SWG (ProxySG)?
Follow the steps below to add usernames to the X-Authenticated-User HTTP header using VPM: