Manage user authentication and permissions.

TutorialsUser InteractionsSecurity | Tutorial | How-to Guide | Reference


This Tutorial Teaches you to:

  • Add user authentication and permissions
  • Implement role-based access control
  • Protect Commands on Displays

Prerequisites:


1. Create Security Groups

To be able to change Security Permissions, first, you will need to:

  1. On the top menu, open Actions → Login
    1. User: Administrator
    2. Password: blank (no pass)

Use Pre-defined Groups

This tutorial is intended to teach, so we are creating new Security Groups. In real-life projects, prefer to use the pre-defined groups (Administrator, Exclusive, User) whenever possible. If you want to skip the creation of new groups and follow the tutorial using the pre-defined ones, that is also a valid learning path.


Navigate to Security → Permissions and configure groups:


OperatorsSupervisorsAdministrator
RunToolsSetValuesToolsSetValues + ShutdownUnrestricted
EditNothingEverything but SecurityUnrestricted



2. Set Security Policies

Go to Security → Policies and configure an Enhanced policy that will be applied to all users created in this tutorial.

Password Requirements

For the Enhanced policy, open the Identification section and set:

  • PasswordMinLength: 8 characters
  • PasswordHistory: 3
  • Max age: 90 days
  • BlockOnInvalidAttempts: 3

Session Settings

For the Enhanced policy, open the Session section and set:

  • Auto-logoff: Inactivity
  • Timeout: 15 minutes

You can repeat the same procedure to create additional policies (for example, a longer-timeout policy for Supervisors and a no-timeout policy for Administrators) and assign them per user in the next step.



3. Define Users

  1. Go to Security → Users
  2. Create users:
UserGroupPasswordPolicy
operator1Operatorsoper123Enhanced
supervisor1Supervisorssuper456Enhanced
adminAdministratoradmin789Enhanced

4. Secure Display Elements

Login Page

By default, the solution already has a default page named LogOn. This page contains the required logic to control user logon on the system once it is running. Feel free to navigate to this display and get yourself familiar with it.

Display Current User

  1. Go to Displays → Draw → MainPage
  2. Add a TextBlock:
    • LinkedValue: User: {Client.UserName}
  3. Run the solution
  4. Log on using the LogOn page
  5. Check the user that is currently logged on the solution

Restrict Controls

For critical controls (e.g., setpoint changes):

  1. Add a TextBox to the MainPage
  2. Double click the control, go to Dynamics and check Security
  3. Check Verify Permissions, and set it to Administrator only
  4. Run the solution
  5. Log on using the LogOn page with the Operator user and confirm the control is read-only
  6. To also make the control not visible based on Security:
    1. Double click the control, go to Dynamics and check Visibility
    2. Check Hide when security is disabled
    3. Run the solution
    4. Validate that the control is hidden based on the logged-in user's security level


Explanation - to understand concepts

Modules / User Interactions / Security Module

Tutorials - to learn by doing

Tutorials /   User Interactions / Security Module Tutorial

How-to Guides - to accomplish specific tasks

How-to Guides / User Interactions / Security Module How-to Guide

Reference - technical details

Technical Reference /  User Interactions / Security Module Reference



In this section...