Activate a public user account
There are two ways to activate a public user account. You can activate it though the Public user page, or you can activate it using EMSE scripting.
If your agency does not use the activation email, your agency can activate an account manually for a user on the Public User page.
To activate a public user account
-
From the Administration menu, select System tools > Public user.
-
Highlight the user account which requires activation.
Civic Platform displays the public user account registration details in the bottom section of the page.
-
Select the Registered agencies record tab.
-
Select the check box next to the agency that requires activation for this account.
-
Select Activate account.
Your agency can activate a public user account using an EMSE script. The script works with the ApplicationSubmitAfter event to activate the public user in the agency, activate licenses for the public user, and send out the activation email to the user. For example, an applicant comes to the counter to apply for a license. While submitting the application users receive the option of creating a Citizen Access account so that they can track progress. The counter clerk selects the option “Create online account.” EMSE creates the online account and email the link, login, and password to the applicant.
For more information on EMSE scripts, see Scripts.
To activate a public user account through EMSE scripting
Refer to the sample EMSE script below to activate a public user account, activate any licenses associated with the account, and send the activation emails to the public user.
//Get the Service Provide Code.
var servProvCode = Accela Automation.env.getValue(“servProvCode”);
//Get the Universally Unique Identifier for public user verification.
var uuid= Accela Automation.env.getValue(“UUID”);
//Activate Public User by servProvCode and uuid.
var result = Accela Automation.publicUser.activatePublicUser(servProvCode,uuid);
if(result.getSuccess())
{
//If Activate Public User Successefully, then print the User ID.
Accela Automation.print(result.getOutput());
}
else
{
//If Activate fail, then print the error message.
Accela Automation.print(result.getErrorMessage());
}