Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Using Automation Interface to Add or Modify Security

Geo SCADA Knowledge Base

Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Knowledge Center
  • Geo SCADA Knowledge Base
  • Using Automation Interface to Add or Modify Security
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Labels
Top Labels
  • Alphabetical
  • database 32
  • Web Server and Client 31
  • WebX 19
  • Request Form 18
  • Lists, Events & Alarms 16
  • ViewX 15
  • Application Programming 12
  • Setup 12
  • Telemetry 8
  • Events & Alarms 7
  • Lists 7
  • Mimic Graphics 7
  • Downloads 6
  • Support 5
  • IoT 5
  • SCADA 5
  • Geo SCADA Expert 5
  • Drivers and Communications 4
  • Security 4
  • DNP 3 3
  • IEC 61131-3 Logic 3
  • Trends and Historian 2
  • Virtual ViewX 2
  • Geo Scada 1
  • ClearSCADA 1
  • Templates and Instances 1
  • Releases 1
  • Maps and GIS 1
  • Mobile 1
  • Architectures 1
  • Tools & Resources 1
  • Privacy Policy 1
  • OPC-UA 1
  • Previous
  • 1 of 4
  • Next
Latest Blog Posts
  • OPC UA - Driver and Server
  • Requirements for Generating a Valid OPC UA Server Certificate
  • Load Events Using LoadRecord and LoadRecords
  • Geo SCADA Embedded Component Licenses
  • Geo SCADA 2023 Known Issues
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Anonymous user
Not applicable
‎2021-06-09 02:54 PM
0 Likes
0
1069
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-06-09 02:54 PM

Using Automation Interface to Add or Modify Security

Originally published on Geo SCADA Knowledge Base by Anonymous user | June 09, 2021 11:54 PM

📖 Home  Back  
The automation interface supports two methods to configure security on objects in the ClearSCADA database, GetSecurity and SetSecurity.

GetSecurity Method



GetSecurity returns the security settings on an ClearSCADA object as a comma separated string. For example,
User:Username:Full,Guest:View+BRS

indicates that the user named Username has full access and the guest users have read only and Browse permissions on the selected object.

Similarly,
Everyone:Full

indicates that Everyone has full access on the selected object.

SetSecurity Method



SetSecurity accepts a string of the same format that GetSecurity returns. A second parameter to SetSecurity determines if security settings should also be applied to the objects descendants.

Security Parameters



A security parameter element consists of
UserType:UserName:Permissions

  • UserType

One of the following:
  • User - A named user

  • Group - A named user group

  • Everyone - Everyone

  • Guest - Guest users

  • Web - Web users


  • UserName

The full path and name of the user or user group. For example,
  • "~Config.Users.Engineer".

For built in accounts such as "Everyone", leave the UserName empty. In this case the format is, UserType:Permission.

  • Permissions

The set of permissions to assign. This uses the same format as the security editor dialogue in ViewX. For example,
  • Operator+CFG.



Permissions Options



There are different permissions that can be set. These are listed below with their corresponding security format:
  Description   Option
  None   None
  Read   View
  Browse   BRS
  Control   CTL
  Override/Release   OVR
  Acknowledge Alarms   ALM
  View Alarms   VWA
  Remove Alarms   RMA
  Edit Notes   NOT
  Retrieve Data   RET
  Promote   PRM
  Tune Limits   TUN
  Annotate History   AHS
  Modify History   MHS
  Validate History   VHS
  Disable Points   DIS
  Disable Alarms   DLM
  Disable Controls   DCT
  Switch Line   SWL
  Diagnostics   DIA
  Exclusive Control   EXC
  Manage Exclus Ctrl   MEC
  Configure   CFG
  Security   SEC
  System Admin   ADM

For every security permission other then None, "View + " must be at the beginning of the security string. For example, to set a permission to allow Read, Browse, Control and View Alarms Permissions, the string would look as follows.
View+BRS CTL VWA

This list is subject to change as new security levels can be added to the product in new releases of ClearSCADA. Check the security dialog to determine the exact options supported by your version of ClearSCADA.


Predefined Permission Sets



Some predefined permission sets allow multiple selections without needing to manually configure each one. These levels are as follows:
  • View

  • Operator

  • Advanced

  • Full.


Each of these cover the following permissions:
  Predefined Set   Associated Permissions
  View   Read
  Operator   Read, Browse, Control, Override / Release, Acknowledge Alarms, View Alarms, Remove Alarms, Edit Notes, Retrieve Data, Promote, Tune Limits, Annotate History
  Advanced   All permissions except Configure, Security, System Admin
  Configuration   All permissions except Security, System Admin
  Full   Includes all permissions


Sample Code



Below is some sample code that allows reading and setting security permissions using the automation interface.
Dim objServer As ScxV6Server'Connect to databaseSet objServer = New ScxV6Server'Configure your username and passwordobjServer.Connect "MAIN","user","pwd"'Find my point called testDim myPoint As ScxV6ObjectSet myPoint = objServer.FindObject("test")'gets current security settings and display using msgboxDim securityState As StringsecurityState = myPoint.GetSecurity()MsgBox securityState'sets the new security settings on the objectmyPoint.SetSecurity "User:Username:Full",1objServer.DisconnectSet objServer = Nothing


Go: Home Back
Labels:
  • Application Programming

  • Security

Author

Biography

Anonymous user

Link copied. Please paste this link to share this article on your social media post.

  • Back to Blog
  • Newer Article
  • Older Article
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of