LESSON

Script Action Security

Description

Learn how to restrict the ability of a user to run a Script action using security settings.

Video recorded using: Ignition 8.1

Transcript

(open in window)

[00:00] In this lesson, I'll demonstrate how to add security to a Perspective script action to restrict which users can run the script. This can be done by opening the Event Configuration window, selecting a script action, and then by clicking the Security Settings button at the bottom of the window. This will open a popup with the available security levels that have been configured on the gateway. I can click the checkbox next to a security level to select it, and I can also select multiple levels at once. The two radio buttons at the bottom will let me configure whether or not a user must have all of the selected levels to perform this action or just one of them. I'll switch to one of my sessions to show what this looks like in action. I already created a view that has a button with the script action we were just looking at. The script will take whatever value is in the text field below and assign it to the label's text property. Then there's an additional button for logging in. I'll type some text into the text field, and then when I click the script action button, you'll see that the script executes, and the label changes.

[01:03] Now I'll go back to my Designer and add some security to the script action. I want users to have to log in before they can run the script, so I'll just add the "Authenticated" security level, click OK, and then I'll save my changes. Back in my session, I'll try changing the label's value again, but this time I see a notification that the action was denied. I'll use my other button to log in. Now that I'm logged in, I can continue to use the script action to change the label's text value.

You are editing this transcript.

Make any corrections to improve this transcript. We'll review any changes before posting them.