on 07-27-2010 3:06 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.