cancel
Showing results for 
Search instead for 
Did you mean: 

Creating MDM users with Java or .net (DOTNET) API

Former Member
0 Kudos

Hi, can anyone point me to code or walk-through documentation(.net is preferred) or examples on creating users in MDM?

I have found that there is a command " CreateUserCommand" but I cannot find information on how to use this command properly via API.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Wardless,

You can use "creat usercommand " to create user.

After setting necessary parameter you can call execute method of this command.

You will easily get what ever the parameter required if you check the set methods of this command.

http://help.sap.com/javadocs/MDM71/index.html

If you need some more help then please get back to us.

Thanks,

Sudhanshu

Answers (1)

Answers (1)

former_member206388
Contributor
0 Kudos

Hi Wardell.

You can perform the following steps in the MDM Java API.

1. Create an instance of the CreateUserCommand by passing the connection accessor or the sessioncontext to it.

CreateUserCommand(ConnectionAccessor connection) or CreateUserCommand(RepositorySessionContext ctx)

2. Set the mandatory attributes user and inchangestamp to it.

setUser(UserProperties user) 
setInChangeStamp(int inChangeStamp)

3. The UserProperties variable which has to be passed to the method setUser() will hold all the user related information(name, password, id etc)

4. Finally call the execute() method for the command which will perform the operation by creating a new user for you in the repository.

execute()

Thanks

Bala