NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

User Manager Details and Comment

Hi,

Is there a way to programmatically access Details and Comment fields from User Manager?

UM.PNG

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 1 of 3
(3,013 Views)

Hi bienieck,

 

I'm not sure about the Details field, but comments can be edited through the UsersFile.UserList object. For example, to edit the Comment field of the Operate.Execute privilege of the User administrator, you could use the expression:

RunState.Engine.UsersFile.UserList.GetPropertyObjectByOffset(0,0).AsUser.Privileges.Operate.Execute.Comment = "New Comment"

 

This will edit the actual Users.ini file with the new value.

 

I would think you could access the Details field similarly, but I've been unable to locate the property it is stored under. It's not an editable field in the User Manager, so it is possible it isn't directly editable. It appears to be directly linked to which Group(s) the User is a member of.

Steven Gloor
Staff Customer Engineer - CTA, CLD
Message 2 of 3
(2,988 Views)

I'm acquiring Privileges refnum from TS.User (like Jigg suggests here)

111.PNG

and then I'm using PropertyObject.Comment to get Comment (see subVI below). But as you can see there is no Details PropertyObject... So is it stored somewhere or is it evaluated dynamically? If dynamically is there any method which returns this text?

333.png

 

 

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 3 of 3
(2,980 Views)