I have a certain attribute that I am mapping from the LDAP. Assume it is called "MyAttr" and it is located under "com.sap.security.core.usermanagement" Namespace.
When I write this code:
IUserContext userContext = request.getUser(); String test = userContext.getAttribute("com.sap.security.core.usermanagement", "MyAttr");
I can retreive the value, but when I write this DynPro code:
IUser user = WDClientUser.getCurrentUser().getSAPUser(); String test = user.getAttribute("com.sap.security.core.usermanagement", "MyAttr");
The String test is null.
Any idea why I get different results at each case?