Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Brand Logo
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • Gateways and Energy Servers
      • Metering & Power Quality
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      • Specifiers Club ZA Forum
      • Електропроектанти България
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Energy & Sustainability Services
      • Green Building Scoring and Certification Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Remote Operations Devices Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Process Automation Talks
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      EcoStruxure IT
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Energy & Sustainability Services
      • Active Energy Management Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Remote Operations Devices Knowledge Base
      • Success Stories Corner
  • companyImpact

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
  • Communities
  • 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 Exchange 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
  • Lists, Events & Alarms 21
  • WebX 19
  • Request Form 18
  • ViewX 15
  • Setup 12
  • Application Programming 12
  • Telemetry 7
  • Mimic Graphics 7
  • Downloads 6
  • Support 5
  • IoT 5
  • Drivers and Communications 4
  • security 4
  • SCADA 4
  • Geo SCADA Expert 4
  • DNP 3 3
  • IEC 61131-3 Logic 3
  • Events & Alarms 2
  • Trends and Historian 2
  • Virtual ViewX 2
  • Lists 2
  • Privacy Policy 1
  • OPC-UA 1
  • Architectures 1
  • Templates and Instances 1
  • ClearSCADA 1
  • Releases 1
  • Maps and GIS 1
  • Tools & Resources 1
  • Mobile 1
  • Geo Scada 1
  • Previous
  • 1 of 4
  • Next
Latest Blog Posts
  • Geo SCADA Expert 2022
  • Geo SCADA 2022 Operating System Support
  • Geo SCADA 2022 Upgrade Strategy
  • Geo SCADA 2022 Upgrade Notes
  • Geo SCADA 2022 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
sbeadle1
Spock sbeadle1 Spock
Spock
‎2021-06-09 02:54 PM
0 Likes
0
414
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
‎2021-06-09 02:54 PM

Using Automation Interface to Add or Modify Security

Originally published on Geo SCADA Knowledge Base by sbeadle1 | 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

sbeadle1

  • Back to Stream
  • 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 forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - 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 © 2023 Schneider Electric, Inc