Quantcast
Channel: SCN : All Content - Web Dynpro Java
Viewing all articles
Browse latest Browse all 1288

How to Get Custom LDAP Attribute in Web Dynpro for Java

$
0
0

Hi experts,

 

I need to enable/disable a text field in web dynpro depending on the user's employee type based in LDAP.

 

The problem is, I do not know how to pull this data since I do not know the attribute name for the employee type in LDAP.

 

Is there a way I could find the attribute name for this in web dynpro?

If not, how would I know this?

 

By the way, this is how I pulled the user's data in LDAP. But I can't pull the data for employee type since I do not know its attribute name! :

 

IUser l_currentUser = WDClientUser.getCurrentUser().getSapUser();

String l_loginUser = l_currentUser.getUserAccounts()[0].getLogonUid();

String l_userRegion = l_currentUser.getAttribute("com.sap.security.core.usermanagement","ExtRegion")[0];

 

 

Thanks in advance for the help!

 

Regards,

Vey


Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>