Is there a way to retrieve the usernames of the members of a specific NT global group, so I can compare them to the current local user and apply Excel workbook protections accordingly? Any help is greatly appreciated!
Printable View
Is there a way to retrieve the usernames of the members of a specific NT global group, so I can compare them to the current local user and apply Excel workbook protections accordingly? Any help is greatly appreciated!
www.mvps.org/vb
look for the NT groups sample (Netuser I think?)
I'm sorry, but I don't quite undertstand your response. Please have patience, as I'm new to VB and it's forums.
Thank You,
Tony T.
I found it. Thank you very much.
Tony T.
tthomas, is that what you were looking for? I thought you were looking to list ALL the members of a Global Group ? I think THAT
sample lists all the Global Groups that a SINGLE member belongs to.
If you were looking for the latter, and found it, please let me know. I'm looking for the code to do this ....
Thanks.
tcurrier,
It didn't matter to me which output I got, because I was trying to set the protections on an Excel spreadsheet based on the current user's membership in a specific global group. So it was just as easy to compare the groups listed to the "enabled" group as it would have been to compare the users listed to the current user.
Thanks,
Tony T.