cancel
Showing results for 
Search instead for 
Did you mean: 

Create User in UME

sebastin_alvarez
Participant
0 Kudos

Hi, i'm having a problem, i can create Portal users with Web Dynpro, but those users also are created in R3.

I want to create users just in Portal.

This is my code, somebody know what am i doing wrong?

		IUserMaint user;
		user = UMFactory.getUserFactory().newUser("userTest");
		user.setFirstName("USUARIO"); // Name
		user.setLastName("PRUEBA"); // Name 2
		user.setDepartment("userTest"); // LIFNR
		user.setEmail("user prueba");
		user.save();
		user.commit();
		IUserAccount uacc = UMFactory.getUserAccountFactory().newUserAccount("userTest", user.getUniqueID());
		uacc.setPassword("123qwe");
		uacc.setPasswordChangeRequired(false);
		uacc.save();
		uacc.commit();

Regards,

Sebastiá

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

you can do it in user Administation in portal.

to create users use User Administation & User Management.

Best Regards

Ravi

sebastin_alvarez
Participant
0 Kudos

Hi, yes the user database is ABAP.

is there some option that can be used the two?

Regards

former_member197348
Active Contributor
0 Kudos

Hi Sebastián,

I guess the problem is not with your code. While installing the Portal we have two options for user database

1. common for ABAP and Portal 2. Portal stand alone

I think your Portal was installed with option 1.

Check with your Basis team.

Regards,

Siva