Impersonation :: How to get the SM_USERIMPERSONATORNAME header.

Document ID : KB000051150
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

I just configured my environment to do impersonation. It works. Now for the application needs, I would like to get the header:

 SM_USERIMPERSONATORNAME
 

Reading the Policy Server Design Guide, I noticed that:

The following list contains user attributes that SiteMinder generates automatically.

When I list the header variables, I am surprised that this header is not present, even if it is told that SiteMinder generates it automatically. How can I get it?

Solution:

For those automatic generated headers, you have to create a response to get them. In order to get the header:

 SM_USERIMPERSONATORNAME
 

You need to create a response for user attribute, with:

 variable  SM_USERIMPERSONATORNAME
 attribute   SM_USERIMPERSONATORNAME
 

Bind that response to the Impersonation Start User event. Then you will be able to get the value and to pass it to your backend application.