User Provider Control

The User Provider control provides a convenient way to incorporate user management actions into your Page Flows, such as creating users, getting a list of users, and setting passwords.

Use the atnProvider attribute to specify which authentication provider contains the users you want to manage with the control.

Security: For user and group management actions, the roles you specify in the WebLogic Administration Portal Authentication Security Provider Service determine whether or not the user can perform the action.

If you use the createUser action, a user profile is automatically created for the user if you perform post-user-creation-processing with the attributes below. Otherwise, you can use the Profile Control to create a user profile for the new user; or have a profile created for the user automatically when the user next logs in.

Following are descriptions of properties on the control:

doPostProcess

Optional - Works in conjunction with the fireEvent, login, and saveAnonymous properties. If this property and the fireEvent, login, and saveAnonymous properties are set to true, all three events occur after user creation. If the doPostProcess property is set to false, the individual settings on the other three properties are used.

fireEvent

Optional - If set to true, a UserRegistrationEvent is dispatched to the event service during the post-user-creation process. Defaults to true. If this property is set to false, doPostProcess is ignored.

login

Optional (Boolean) - If set to true, the user is logged in during the post-user-creation process. Defaults to true. If true, a user profile is created automatically for the user at login. If this attribute is set to false, doPostProcess is ignored, and you must either create a profile for the user or have a profile created for the user automatically when the user next logs in.

saveAnonymous

Optional - If set to true, any properties the user may have set during the session before registering are added to the new user's properties during the post-user-creation process. Defaults to true. If this property is set to false, doPostProcess is ignored.

See Using Portal Controls for an example use of the User Provider control.

Javadoc

For property, method, and other details on this control, see the control's Javadoc.

Related Topics

Adding Portal Controls to Java Page Flows

Using Portal Controls

Group Provider Control

Profile Control

Tutorial: Creating a Login Control Page Flow Using the Wizard

User/Group Management JSP Tags