When attempting to retrieve the User Distinguished Name (DN) attribute value via Policy Xpress (PX) or a standard task, the value returns as null or empty. This occurs even when the attribute is mapped in the directory configuration.
user.getAttribute('dn') calls in custom logic return null.In Symantec Directory and Identity Manager architecture, the dn (Distinguished Name) is the unique identifier (RDN) of the object and is not defined as a standard profile attribute within the user object itself. Therefore, it cannot be retrieved using standard attribute fetch methods or schema extensions.
To retrieve the DN value for use in Identity Manager tasks or Policy Xpress, implement a Business Logic Task Handler (BLTH). A BLTH can access the full DN via the provider interface.
BLTHAdapter.UserProvider to locate the user and retrieve the unique name.handleValidation or handleSetSubject method: