This section describes how to create, modify, and delete Mobile Web Studio, Portal Interface, and mobile device user accounts from Mobile Web Studio; and how to reset passwords.
You may want to work out a process for resetting passwords. By default, the Portal Interface user’s request is sent from the Portal Interface (Reset Password link) to the e-mail address or addresses listed in the global.properties.xml property, resetPasswordEmail. Once the request is received, use the procedure in “Resetting passwords for user accounts” to reset the password.
Creating new user accounts
Log in to Mobile Web Studio as StudioAdmin (such
as the masuper
account).
Select Manage | Users/Roles from the menu in the left pane, and select Users from the Accelerator Manager pane as shown in Figure 4-1.
Select New from the toolbar.
When the Create New User window displays, complete the required fields.
Username – enter a user name, such as “jdoe” or “guest,” or “IT.” This will be the account name when logging on to Mobile Web Studio. All user names must be unique; if you have duplicate names, find a way to make the user name unique, such as adding an initial or a number.
Do not use “opsuper” or “masuper” for
the Login Name.
Active – make the account active. To set up accounts in advance, unselect this option to keep this account inactive, and then later select the option to activate the account.
Default Resource – select a resource, such as Mobile Studio, from the drop-down list. When users log in, they will have access to objects in that resource, to which they have permission. See Chapter 5, “Resources” for information about resources.
Available roles – select one or more roles and use Add, Add All, Remove, Remove All to move roles in and out of the Assigned roles column.
To set up additional roles, see “Administering roles”; to modify permissions for a role, see “Administering objects”.
Assigned roles – the user can access any object that is assigned the roles in this column.
First name – enter the user’s first name (required).
Last name – enter the user’s last name (required).
E-mail – enter the user’s e-mail address (required). The password is sent to this e-mail address.
Work phone – enter the user’s work telephone number.
Home phone – enter the user’s home telephone number.
Zip code – enter the user’s five-digit zip code.
Notes – enter notes or reminders for the account.
Click Save, and OK to confirm. The new user displays in the list of available users, and the password is sent to the e-mail address entered for the account. Upon login, the user can access any applications and pages assigned the permissions granted to this user.
Modifying existing user accounts
Log in to Mobile Web Studio as StudioAdmin (such
as the masuper
account).
Select Manage | Users/Roles from the menu in the left pane.
Select Users.
Select an existing user from the list of users, and select Edit from the toolbar.
When the User Editor window displays, complete the required fields.
Click Save, and OK to confirm.
Resetting passwords for user
accounts
Log in to Mobile Web Studio as StudioAdmin (such
as the masuper
account).
Select Manage | Users/Roles from the menu in the left pane.
Select Users.
Select an existing user from the list of users, and select Edit from the toolbar.
When the User Editor window displays, select Password.
Select Yes to confirm. A confirmation message displays, explaining the password will be sent to the user’s e-mail address.
Deleting user accounts
Log in to Mobile Web Studio as StudioAdmin (such
as the masuper
account).
Select Manage | Users/Roles from the menu in the left pane.
Select Users.
Right-click an existing user in the list of users, and select Delete User from the pop-up menu.
Click OK twice to confirm. The user is removed from the list of available users.
When you delete a Mobile Web Studio user, you do not
delete templates, applications, pages, and so forth that are owned
by the user. You must run the PortalCleanup utility
to clean up these entries in the PortalDB.
Cleaning up the PortalDB (PortalCleanup
utility)
When you delete a Mobile Web Studio user, you do not delete templates, applications, pages, and so forth that are owned by the user (in some cases you may not want to delete these things if they are use in applications used by other users). Over time you may want or need to clean up the database tables. Use the PortalCleanup utility to clean up these entries in the database tables.
From a Command Prompt window, navigate to the PortalCleanup.bat script located in: SYBASE\tomcat\webapps\onepage\config if you are using Tomcat.
Make sure the JAVA_HOME environment variable is set; for example, set to SYBASE\jdk.1.5.x.
Execute this command, substituting a the user’s login name for user:
% PortalCleanup -webapproot SYBASE\tomcat\webapps\onepage user
The script uses a com.sybase.ep.utils.PortalCleanup utility to access the PortalDB and remove all references to the given login name.