cancel
Showing results for 
Search instead for 
Did you mean: 

Setting custom user attributes

former_member188556
Active Contributor
0 Kudos

Hi

I have created some user attributes through Direct Editing in UME.

Now how will i set the values of this attributes using WDP?

Regards

BP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
former_member188556
Active Contributor
0 Kudos

Hi Singh

Thanks for ur quick reply

Can u give more coding details on this "<i>getMutableUser; on this you can call setAttribute; and don't forget to persist the changes by save + commit</i>."

Regards

BP

Former Member
0 Kudos

IUserFactory userFact = UMFactory.getUserFactory();

IUserMaint user = userFact.getMutableUser(

userFact.getUserByLogonID(

userID).getUniqueID());

res = user.setAttribute(

"com.sap.security.core.usermanagement", property,values);

user.save();

user.commit();

also chk it

/thread/22699 [original link is broken]

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ..

you can do this ..

com.sap.security.api.IPrincipal (superinterface of IUser)

getAttributeNamespaces()

getAttributeNames(java.lang.String namespace)

getAttribute(java.lang.String namespace, java.lang.String name)

Chek this also..

https://www.sdn.sap.com/irj/sdn/forums

Hope this will help..

regards GS

former_member188556
Active Contributor
0 Kudos

Hi Satish

If possible explain more on how we can set the attributes.

I am not talking about "get" attributes, but about "set"...

Regards

BP