User Access
Giving User Access
Once you have created your required Forms, Reports and Procedures you will need to give users access to them.
To do this you need to do 2 things
- Create an Access Level.
- Add a User.
Creating an Access Level
Home
Choose the Form for this Access Level.
When you log in as a developer the first thing you see is the Home Page.
Each Access Level requires a Home Page, which will be its starting point for Users with this Access Level.
This Home Page should be a Launch Form.
The code for the default User Home Page is nuuserhome (the same as User Home on the Setup Tab).
Code
Lookup code for this Access Level
Description
Description of this Access Level
Forms
Add Forms that will be available to this Access Level.
Click the checkbox to enable the following on this Form for this Access Level.
- Add
- Save
- Clone
- Delete
Reports
Add Reports that will be available to this Access Level.
Procedures
Add Procedures that will be available to this Access Level.
Adding a User
Name
User's real name
Email address
Language
Select a language with a translation in Translations.
If left blank it will just use the phrases used in nuBuilder.
Access Level
Select a previously defined Access Level.
Login Name
nuBuilder Login Name
Enter New Password
nuBuilder Login Password
Only used when changing passwords.
Reenter New Password
Repeat nuBuilder Login Password
Only used when changing passwords.
Creating Password Policies
Rules for enforcing Password Policies can be created by making a Procedure with a Code of nuCheckPasswordPolicy
If there is a Procedure named this it will be used to validate any Password Changes.
Setting a variable called $check to true will allow the changes to be saved.
Here is an Example Procedure...
<source lang="php">
function nuCheckPasswordPolicy() {
$oldpw = '#old_password#'; $newpw = '#new_password#';
$passwordErr = "";
if (strlen($newpw) < 8) { $passwordErr .= "Your Password Must Contain At Least 8 Characters!
"; } if (!preg_match("#[0-9]+#",$newpw)) { $passwordErr .= "Your Password Must Contain At Least 1 Number!
"; } if (!preg_match("#[A-Z]+#",$newpw)) { $passwordErr .= "Your Password Must Contain At Least 1 Capital Letter!
"; } if(!preg_match("#[a-z]+#",$newpw)) { $passwordErr .= "Your Password Must Contain At Least 1 Lowercase Letter!
"; }
if (strlen($passwordErr) > 0) {
nuDisplayError ($passwordErr) ; return false;
} else {
return true;
} }
$check = nuCheckPasswordPolicy();
</source>