Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Tag security is often the best way to configure security for data access. By defining security on a Tag, you affect the Tag across wherever it is used, as opposed to configuring component security on each component that displays or controls that Tag.

There are three properties on Tags that can restrict access. 

  • Read Permissions: Defines the security levels required in order to read values from a Tag

  • Read Only: Defines whether a Tag is read-only or writable

  • Write Permissions: Defines the security levels required in order to write values to a Tag

Users with specific roles and zones can be given read/write access to a Tag, while other users with other roles are excluded from modifying the Tag.

If a user opens a Perspective view or a Vision client window that has components that are bound to a Tag they do not have permissions for, the user will see an overlay on top of the component. For more information, see Tag Quality Codes and Overlays. The following example shows a tank displayed in a session, but the user does not have read permission for the Tag it is bound to.


On_this_page



Scroll html ignore


Iulink
URLhttps://inductiveuniversity.com/video/tag-security?r=/course/security
NameTag Security




Read Only Security

When a Tag is set to read only, a Lock  icon is displayed next to the Tag in the Tag Browser. 




Read and Write Permissions

Instead of making a tag Read Only for all users, you can conditionally provide read and write access based on Security Levels. Doing so involves a adjusting the security settings on the tag in question.  The checkbox tree you are presented with will show you all of the security levels configured in the Gateway Config > Security > Security Levels page.

Read Permissions

Read permissions define the security levels required in order to read values from a Tag.  By default, Tags have Read Permissions set to "Public".   You can change the Read security using the Tag Browser in the Designer. 

  1. In the Tag Browser, right-click on the Tag , and select the Edit  icon
  2. Scroll down to the Security section. In the Read Permissions section, click the the Edit  Image Modified  icon.
    Image Modified

  3. On the screen, choose the security levels you want to have Read permissions for this Tag. In this example, only users with role of "Driver" will be able to see the Tag value.

    Image Modified


  4. Click Commit to accept the settings. 
  5. Click OK to save the changes to the Tag.
  6. If you are logged in as a user other than Driver, you will now see the "Bad_AccessDenied" in the Tag Browser instead of the Tag's value. 



Write Permissions

Write permissions define the security levels required in order to read values from a Tag.  By default, Tags have Write Permissions set to "Public". You can change the Write security using the Tag Browser in the Designer. 

  1. In the Tag Browser, right-click on the Tag, and select the Edit   icon.
  2. Scroll down to the Security section. In the Write Permissions section, click the  Edit  icon.

  3. On the screen, choose the security levels you want to have write permissions for this Tag. In this example, only users with role of Administrator will be able to write to the Tag value.


Using Security Levels

In addition to setting up security on individual Tags, you can set up security policies specific to each Security Zone.  This is useful in cases where you wanted to make all tags in a provider read only from network locations. Tag Access is one of the options for a Security Zones page for more details.