05-03-2016 03:51 AM - edited 05-03-2016 03:52 AM
Hello,
I have a tab control that has 6-7 tabs. I want to show some tabs to normal users and I want to hide some tabs from those users, only Administrators can see them. Is there any way to set the user accesses to tab pages indivudually? In settings of tab control there is only security settings which applies to tab control, not pages indivudually. I can show/hide pages programmatically, but I need to know the groups name (Administrator, Operators, Guest, Everyone) to which the logged in user belongs to.
According to that page it is also not possible 😞
Summary : How can I show/hide tab pages according to users group?
I am using Labview 2014 SP1 32-bit on Win8.1 with DSC module
Solved! Go to Solution.
05-03-2016 05:45 AM
Hi kahlenberg,
I guess the fastest way is to use the CMD with gpresult.
For example this command - gpresult /r /scope:user - will give the whole summary of group privileges of the current user.
Then it is on you to properly parse the response 🙂
05-03-2016 06:01 AM
Thanks for answer , but I've forgotten to mention that I don't mean the windows users and domains instead I mean users in Domain Account Manager from NI.
05-03-2016 08:22 AM
Ah, ok 🙂
Anyway I managed to get that info using VIs from the DSC Security palette:
05-03-2016 08:55 AM
Oh, yes, thank you.
05-03-2016 12:08 PM
Here is a discussion on how to do something similar to this, along with some VIs that do what you want without requiring DSC.
https://lavag.org/topic/15260-labview-and-windows-authentication/?do=findComment&comment=92010
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord