Check if User is Administrator

Using Workflows, you can check if the user which is logged into Runtime is an administrator. This can be used to provide different access to certain functionality. For example, you may only want administrative users to be able to complete the actions in the Workflow.

Note: You can only check if the user is an administrator if security is enabled for the project.

In the below example, we have a door we want only administrators to be able to put into maintenance mode. The Start block is configured to trigger when a user pushes a button.

Before st

  1. Add a logic block.
  2. Double-click the block to open the Logic Browser.
  3. Click User Security, then double-click Is Administrator. Click OK.
  4. Drag and drop the False execution path from the right of the Logic block to the Stop block.
  5. Add an Action block and configure it to set the door into maintenance mode.
  6. Drag and drop the True execution path from the left of the Logic block to the Action block.
  7. Connect the Action block to the Stop block.

When this is completed, the Workflow should look like this.