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

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

vbscipt to assign new security user group to a user

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

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
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • vbscipt to assign new security user group to a user
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
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 Experts
User Count
sbeadle
Kirk sbeadle Kirk
307
AndrewScott
Admiral AndrewScott
95
BevanWeiss
Spock BevanWeiss
89
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
36
View All
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
Back to EcoStruxure Geo SCADA Expert Forum
mhayat
Ensign mhayat
Ensign

Posted: ‎2022-07-14 11:05 AM . Last Modified: ‎2023-05-02 11:54 PM

0 Likes
5
1715
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

Posted: ‎2022-07-14 11:05 AM . Last Modified: ‎2023-05-02 11:54 PM

vbscipt to assign new security user group to a user

Hi Guys,

I am wondering if there's any VBScript available that I can use to assign a new security usergroup to a user. Basically, what I am doing, I need to use a read-only operator user with no config permission to make some config changes.

 

My thoughts are: as soon as the operator hits a button on the screen, the script will assign the usergroup with config permission. the script will make the config changes and take the usergroup off from the user. at the end of the script and the user becomes read-only again.

 

I did get to the point where i used "usergroupids" or "usergroupnames" properties but i can not find a way to assign a new user group... e.g. if a user has 3 usergroups assigned, i can see each user group using script but how to assign more usergroups thats where i am stuck.

 

I hope it's not something silly to think of.

 

But if somebody has a better idea I would appreciate it.

 

Thanks

  • Tags:
  • english
Reply

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

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 5
CraigEl
Administrator CraigEl Administrator
Administrator

Posted: ‎2022-07-14 04:54 PM

0 Likes
1
1697
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

Posted: ‎2022-07-14 04:54 PM

What Schneider Electric product and version does this relate to?

  • Tags:
  • english
Reply

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

mhayat
Ensign mhayat
Ensign

Posted: ‎2022-07-14 07:21 PM

In response to CraigEl
0 Likes
0
1687
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

Posted: ‎2022-07-14 07:21 PM

Sorry I should had to mention that earlier.

 

Its Geo SCADA Expert. And the version is October 2021 update.

  • Tags:
  • english
Reply

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

geoffpatton
Captain geoffpatton
Captain

Posted: ‎2022-07-15 07:26 AM . Last Modified: ‎2022-07-15 07:28 AM

0 Likes
1
1655
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

Posted: ‎2022-07-15 07:26 AM . Last Modified: ‎2022-07-15 07:28 AM

Maybe it could be done from SQL. In the past that would have been simple enough because there used to be a limit of like 4 user groups and they had separate fields but since it is now one field with them all grouped in it editing them will be harder. However the user shouldn't have write permissions to edit their own user so that should eliminate using a script anyway.

 

You could assign a new user group control permissions on just those items. In its security you'd have to deselect the inherit from Parent on that item and then its security would be managed separately. This works from inside a template. Then permanently add that user group to the basic user.

 

I have setup ST programs and FBDs which have the right to do controls on other objects and set the permission to execute the ST, or FBD  to Read so that anyone can execute it. I have used this for allowing them to execute things like a Refresh on an Outstation and manual execution of a SQL Export.

 

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-07-15 08:31 PM

In response to geoffpatton
0 Likes
0
1637
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

Posted: ‎2022-07-15 08:31 PM

As mentioned by Geoff, scripts run under the security privileges of the user executing them, so this isn't a solution to changing Security Permissions.

 

You would need to look into using a Logic routine for this, and I suspect it would almost certainly want to be an ST Logic routine.

 

I've done something like this before, but I can't remember exactly how I went about it.  It definitely involved ST Logic though.

 

You'd want to look into the Database Schema, against the CUser and CUserGroup types to see what Methods they have, and which of the fields are writable.

Ideally you'd be looking for either a Method on the CUser that is like 'AddUserGroup', or something on the CUserGroup that is like 'AddUser'.

 

 

The other point that Geoff raised is a good one also.  If it's just a single operation that you need the user to perform with the elevated permissions, then you can easily do this with Logic and then adjusting the permissions for execution of the logic to allow the user to execute it.  We commonly use this for letting standard users configure certain aspects of objects.  Like assigning outstations to different outstation sets without being allowed to adjust other characteristics of the outstation (etc etc).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

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

MF_SHAIKH
Ensign MF_SHAIKH Ensign
Ensign

Posted: ‎2022-08-30 03:09 AM

0 Likes
0
1298
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

Posted: ‎2022-08-30 03:09 AM

Hello,

You can save the details of the user in the variables and then remove the user, After that create the same user with different group.

 

Hope it helps.

 

Regards,

Faisal

 

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

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

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
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