By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,640 Members | 1,331 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,640 IT Pros & Developers. It's quick & easy.

Security Group

P: n/a
Could anybody here help me find a way to pull the security group name of
the current user?

I've been looking in System.Security.Principal

and have looked at Windows Indentity and such, but i can't seem to be
able to find the Security Group name.

Any help would be greatly appreciated!
Thanks
Dago

*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Dago,

Try This:

Private Function InGroup(ByVal grp As String) As Boolean
Dim id As WindowsIdentity
id = WindowsIdentity.GetCurrent()
Dim p As New WindowsPrincipal(id)
InGroup = p.IsInRole("YourDomainName\" + grp)
End Function

"Dagoberto Aceves" <da*****@devdex.com> wrote in message
news:eX**************@tk2msftngp13.phx.gbl:
Could anybody here help me find a way to pull the security group name of
the current user?

I've been looking in System.Security.Principal

and have looked at Windows Indentity and such, but i can't seem to be
able to find the Security Group name.

Any help would be greatly appreciated!
Thanks
Dago

*** Sent via Developersdex http://www.developersdex.com ***


Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.