cancel
Showing results for 
Search instead for 
Did you mean: 

Creating User in UME using Web Dynpro application

Former Member
0 Kudos

Hi all,

Is there any reference for creating user in UME using Web Dynpro application?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

aad the JAR for you application from the folder plugins

mine is "C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.security\lib\com.sap.security.api.jar"

import the package.

u can find out the API documents in WD.

Edited by: Jean Lee on Jan 28, 2008 2:53 AM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi!,

you can use following code to create a user...

IUserFactory userfact = UMFactory.getUserFactory();

IUserMaint userMaint = userfact.newUser("TestUser");

userMaint.setDisplayName("Any Name");

userMaint.setFirstName("Name");

userMaint.setLastName("Last Name");

userMaint.save();

userMaint.commit();

URL for UME API is---

http://help.sap.com/javadocs/NW04/current/um/index.html

Hope the above code will be helpful to you.

regards,

sahu

Former Member
0 Kudos

IUserMaint userMaint = userfact.newUser("TestUser123");

This creates the field in the UME

Unique ID: USER.PRIVATE_DATASOURCE.un:TestUser123

How do i set the Logon ID and password of the user?

Former Member
0 Kudos

i realized there is some sample codes here

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/createandeditEPuserwithJava+cod

appreciate all help!

Former Member
0 Kudos

Hi,

Please go through [this|; link.

Regards,

Satyajit.