NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove User From Group Programmatically Via LabVIEW

Solved!
Go to solution

I'm using the below code to try and see if a user belongs to a group, if he/she does, then remove them.

 

Attached is a snippet of the code. The true case in the case selector is:

 Capture.PNG

Am I missing something? I can't work why the property object node returns "Members" all the time.

 

 

0 Kudos
Message 1 of 2
(2,202 Views)
Solution
Accepted by topic author Lbee11

Hi,

 

I've looked through your snippet and simplified the user check and deletion - "Members" is the name of the Property, whereas you need to check the string value of each element:

Remove User From Group.PNG

 

 

I hope this helps,

 

Charlie

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 2 of 2
(2,192 Views)