Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Direct registration to a GROUP by group admin View modes: 
User avatar
Member
Member
eagleag - 11/26/2010 1:55:34 AM
   
Direct registration to a GROUP by group admin
HI,
I would like to create a custom registration form that only a GROUP ADMIN can see
(can add it to group management page).

I would like the group admin to fill in userName, Name, password, (maybe already give a group ROLE).
When group admin click REGISTER and email is sent out to tne new user with a link to login page + there userName and password.
The new user should also be a member of the group admins group.

I assume I can use API to do this.
When on registration form I can get the group code_name that group admin is admin of and when he click register (submit button) the new user is automatically made a member of his group.
Is this the best way to do this?
any tips on how to do this correctly?

MANY THANKS :)


User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 11/26/2010 6:34:26 AM
   
RE:Direct registration to a GROUP by group admin
Hi,

you can clone registration form webpart (in ~/CMSWebParts/Membership/Registration folder) and add a combo box where the group admin can set roles. In the code behind you can use API to assign user to appropriate groups/roles when the user is saved. You can also set the emial in the code as well.

To make this webpart visible only for group admins you can set Visibility property to true or false. You can create for example a custom macro in which you can check if the current user is a group admin or not.

Best regards,
Ivana Tomanickova