Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

User Profile - Customized Fields

Hello guys,

I´ve the following code tho create a new user and set the values to the user profile:

user = UMFactory.getUserFactory().newUser("test");







So, I´ve created on my Portal Adm some user profile customized fields under the "Customized Information" section.

How can I access (set the values) to this fields ?

I´ve created this fields: myfield1 and mypersonalid

How can I set the values (write) this fields under the ser profile ?

Thanks in advance,


Former Member
Former Member replied

Hi Evandro:

First you have to get the user that you want to get the custom propertie.

IUser sapUser = UMFactory.getAuthenticator().forceLoggedInUser(request, response);

Next pass is get the propertie.

String customPropertie[] = sapUser.getAttribute("name_space", "key_propertie");

String vauePropertie = customPropertie[0];

name_space = name of the name_space that your configurate in the "Customized information"

key_propertie = the key, is the name of your propertie.

Good luck!!



Message was edited by: Josue Cruz

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question