Tech Tip : CA Single Sign-On : SM_USERGROUPS and webagents

Discussion created by Patrick-Dussault Employee on Apr 15, 2019



We're running Web Agent and we'd like to know under which conditions
the SM_USERGROUPS header gets populated ?




User attributes SM_USERGROUPS and SM_USERNESTEDGROUPS are generated
when the user is authenticated and is stored in policy server user
cache. This data is fetched again only if one of the below mentioned
scenario's happen.


1. User log off and login again
2. When the session expires


Following two registry defines the LDAP query for SM_USERGROUPS:





You can make SM_USERGROUPS available for the browser by setting a response :


Documentations :




This attribute holds the groups to which the user belongs. If the user
belongs to a nested group, this attribute contains the group furthest
down in the hierarchy. For all nested groups to which the user



If a user belongs to the group Accounts Payable and Accounts Payable
is contained in the group Accounting, SM_USERGROUPS contains Accounts
Payable. If you want both Accounting and Accounts Payable, use


You won't see the SM_USERGROUPS in the browser, it is sent only to the
accessed page. In order to see them, you have to put a test page in
which you'll run code to read all the headers and display them in the
html page. Here's a sample in php :



foreach (getallheaders() as $name => $value) {
echo "$name: $value\n";
echo "<br />";



The Directory Mapping is used at authorization time. The SM_USERGROUPS
is set at authentication time, and as such it won't be used.


KB : KB000130878