LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 8.0:: How to get the group name of a user logged to a NI Security Domain?

Hello all,
 
I am using LabVIEW 8.0 PDS.
 
I created a new local domain called "MyDomain" in the "NI Domain Account Manager" . I added a new User called "MyUser" and a new group called "Maintenance". I set "MyUser" to be a member of the "Maintenance" group. Then, I configured LabVIEW to invoke the login dialog at start-up in order to log "MyUser" with the correct password.
 
I would like to get the group name of the current user logged programmatically in a VI. I tried with the VI Server >> Application >> Security properties and methods and also with the properties and methods of the NI Security Class but it seems to be not so simple as I believed at start.
 
I do not find any informations or KB on this (all the documents I found deal with LV DSC or TestStand).
 The final goal is to be able to manage a list of user for my application. Each user is a member of a group ("Administrator", "Operator", "Maintenance") and depending on the group, the user can or cannot access to some parts of the application.
 
Thanks for your help.
 
Matthieu
Eurilogic
0 Kudos
Message 1 of 16
(9,325 Views)
If you have the DSC package you will have VIs to get more information from the security domain. I think some of them deal with getting the Group Listing and User Listing. The LV package only allow you to login to a domain and get current login user name only.


Message 2 of 16
(9,299 Views)
Matthieu,
 
I have the same need to retrieve the group name attached to a user.
 
Did you get any correct answer to your question ?
 
Jean-Louis Schricke
MESULOG

Jean-Louis SCHRICKE
CTA - Certified TestStand Architect (2008 - 2022)
CTD - Certified TestStand Developer (2004 & 2007)
CLD - Certified LabVIEW Developer (2003 & 2005)

0 Kudos
Message 3 of 16
(8,977 Views)

Hello Jean-Louis,

I asked support from NI and they told me that this functionnality is only available with LV DSC 8.x. Because I was working only on LV, I decided to develop my own module to handle user management.

Sorry, it seems that it is not possible directly in LV.

Have a good day.

Matthieu - Eurilogic

 

0 Kudos
Message 4 of 16
(8,940 Views)

I am using LabVIEW DSC 8.20 and its security module.

It didn't find any VI which can give me the group used by by a user.

Who can help me ?

 

Jean-Louis SCHRICKE
CTA - Certified TestStand Architect (2008 - 2022)
CTD - Certified TestStand Developer (2004 & 2007)
CLD - Certified LabVIEW Developer (2003 & 2005)

0 Kudos
Message 5 of 16
(8,937 Views)

Bonjour Jean-Louis,

Je pense que vous trouverez votre bonheur avec le vi "group name and domain name " disponible dans la palette DSC => Security .

En espérant que cela convienne a vos attentes .

Cordialement 

Richard Keromen

0 Kudos
Message 6 of 16
(8,880 Views)

Hi Richard,

In LabVIEW DSC 8.20, I don't have in the security palette the VI you are speaking about.
Could you please check the VI name or the version you are using.

Regards,

Jean-Louis SCHRICKE
CTA - Certified TestStand Architect (2008 - 2022)
CTD - Certified TestStand Developer (2004 & 2007)
CLD - Certified LabVIEW Developer (2003 & 2005)

0 Kudos
Message 7 of 16
(8,878 Views)

Hello Jean-Louis,

LV DSC 8.20 is installed on my machine. I can see the "Security" sub-palette on the "DSC Module" palette. In the "Security" sub-palette, I can find the following VIs:

  • NI Security Get User Info
  • NI Security Get Group Info
  • NI Security Get Group List
  • NI Security Get User List

These VIs seems to be installed at the following location on my machine:

C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\lvdsc\security

Hopes this help.

Matthieu - Eurilogic

0 Kudos
Message 8 of 16
(8,872 Views)

Re,

Here is a screenshot of this functions...

If you really own LV DSC 8.2 the best thing to do is to reinstall it.

Regards, 

 

Message Edité par Richard K. le 04-02-2007 04:00 AM

Richard Keromen

0 Kudos
Message 9 of 16
(8,872 Views)
Richard,
 
We have the same palette so no need to reinstall anything.
In this palette there is no VI which can retrieve the group attached to a user.
 
Please try to create a user in a domain and retrieve programmatically the group attached to this user.
You will see that no VI in the security palette can do that.
 
Regards,

Jean-Louis SCHRICKE
CTA - Certified TestStand Architect (2008 - 2022)
CTD - Certified TestStand Developer (2004 & 2007)
CLD - Certified LabVIEW Developer (2003 & 2005)

0 Kudos
Message 10 of 16
(8,866 Views)