cancel
Showing results for 
Search instead for 
Did you mean: 

Create user with Web Dynpro

Former Member
0 Kudos

hi,

I have the following problem:

I want to create a Web Dynpro Application which enables

new users to create their own account (I want the ability to create my own login page with individual fields).

I already designed the layout, now I have to to develop the code for the "create user event".

Does anyone have a piece of sample code for me?

thanx

christoph

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christoph

You can try using the Usermanagement apis for this

rough code would be


		IUserFactory userFac = UMFactory.getUserFactory();
		IUserMaint userMaint = userFac.newUser("<user>");
		userMaint.setFirstName("<name>");
		userMaint.setLastName("<name2>");
		userMaint.setEmail("<email>");
                userMaint.commit();

Still will have to research on how to set password

Regards

Pran

former_member182372
Active Contributor
0 Kudos

Hello,

May be this way?


IUserAccount[]  IUserMaint(IUser).getUserAccounts()
IUserAccount.setPassword()

Regards, Maksim R.

Former Member
0 Kudos

Thanks Maksim

In addition to this a point to be noted would be User creation might not work if you have pointed your UME to an external read only repository

Regards

Pran

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you want to authentication for your webdynpro app then you can go for the Authentication provided by WebDynpro.

If you want to create your own auth then i feel you have to maintain your own database for the users !!!

Regards, Anilkumar