cancel
Showing results for 
Search instead for 
Did you mean: 

Get current user custom attributes

Former Member
0 Kudos

hi folk,

I have a new WEB Dynpro Application.

I Included 3 new attributes in the UM

now, i want to get this new atthibutes.

how can i get this new custom attributes from the user who is executing the application?

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hello Rafael,

Just my guess - have never tried:


com.sap.security.api.IPrincipal (superinterface of IUser)
	getAttributeNamespaces()
	getAttributeNames(java.lang.String namespace) 
	getAttribute(java.lang.String namespace, java.lang.String name) 

https://media.sdn.sap.com/javadocs/NW04/SP9/ume/com/sap/security/api/IPrincipal.html

Best regards, Maksim Rashchynski.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank Karthick,

your answer was very useful to me.

best regard,

Rafael

Former Member
0 Kudos

Hi Rafael,

Whats UM?Just explain it.I'll try to help you.

If you want to get the values of the context attributes,

use this code.

this.wdContext.currentContextElement().//your attribute;

this.wdContext.getNodeInfo().getAttribute(label);

If you r not looking for this answer,tell me your expectation?

Regards,

Karthick

Former Member
0 Kudos

hi, Kartick, thank you for you help.

when i say UM, i mean UME (User Management engine).

the topic is:

i want to get some custom attributes (added by me in UME Configuration attribute -> ume.admin.addattrs) from the user who is executing my web dynpro application to display these one on the same WEB Dynpro Application.

how can do that ? what is the java Code to get this attributes?