You can configure security settings for an individual shared variable or for multiple shared variables at one time. You can grant or deny access to shared variables for users, groups, and machines. By default, the access rights are unspecified, which means that the access rights are denied.
 |
Note If you leave a permission unspecified, the access for that permission is denied by default. If you leave a permission for a group unspecified, you can grant a specific user in that group access to the permission. However, if a permission for a group is set to deny, you cannot grant any users in that group access to the permission. |
To add user or group access for a shared variable, the user or group first must be created in the Domain Account Manager.
Complete the following steps to configure security for a shared variable.
- Right-click the shared variable in the Project Explorer window and select Properties from the shortcut menu to display the Shared Variable Properties dialog box.
- In the Shared Variable Properties dialog box, select the Security option to display the Security page.
- Place a checkmark in the Enable Security checkbox.
- Click the Add button to display the Add New Host/User dialog box, which you can use to select a user, group, or host machine for which you want to configure access rights.
- Select a user or group from the Users and groups list or enter the computer or IP address of the machine in the Host text box.
- Click the OK button to close the Add New Host/User dialog box and return to the Security page of the Shared Variable Properties dialog box.
- In the Permissions list, select a permission.
- If you want to grant the selected user this permission, place a checkmark in the Grant checkbox. If you want to deny the selected user this permission, place a checkmark in the Deny checkbox.
- Click the OK button to close the Properties dialog box.
Complete the following steps to configure security for multiple shared variables at a time.
- Select Tools»Shared Variable»Multiple Variable Editor to open the Multiple Variable Editor window.
- Select the Security option from the Category list to display the Security page.
- Place a checkmark in the Enable Security checkbox.
- Click the Add button to display the Add New Host/User dialog box, which you can use to select a user, group, or host machine for which you want to configure access rights.
- Select a user or group from the Users and groups list or enter the computer or IP address of the machine in the Host text box.
- Click the OK button to close the Add New Host/User dialog box and return to the Security page of the Shared Variable Properties dialog box.
- In the Permissions list, select a permission.
- If you want to grant the selected user this permission, place a checkmark in the Grant checkbox. If you want to deny the selected user this permission, place a checkmark in the Deny checkbox.
- Click the OK button to close the Properties dialog box.