02-09-2022 06:05 PM
Hello,
I am writing a User Management Toolkit in LabVIEW that will integrate a TestStand storage. One thing I would like to do is create/delete privileges if there are no longer any users that have that privilege. I'm curious if there's any way to create/delete privileges globally so that all users will have/no longer have a privilege. I noticed that the privileges object is read only. Is this possible? Is there any work around? Thanks in advance for any insights!
02-16-2022 04:23 AM
Hi alexm1,
You can use the TestStand API to read and modify the privileges that users have. The example below modifies the GrantAll property to TRUE for a single user.
Hope this helps
Steve
02-16-2022 03:02 PM
Hi Steve,
Thanks for the reply! I've figured out how to set privileges as you described. What I am looking to do here is actually create new privileges programmatically. I believe I figured out how to make a new privilege using the following code, which adds the privilege to a container called "Custom". However, I'm not sure if deleting privileges is possible or not. I'm still exploring this, and will update this post if I figure it out.