Thanks, very interesting but it does not solve my problem.
I need My.user.isinrol e("MycustomGrou p") to return true if a My.user is in
the group MyCustomGroup on my domain controller.
It does not work.
I can see that my.User is in the correct domain and my.user is a member of
administrators
If I use
If My.User.IsInRol e(ApplicationSe rvices.BuiltInR ole.Administrat or)
or use
If My.User.IsInRol e("Administrato rs")
It returns true which Is Ok, The user is part of the administrators group
The two above use builtin groups. I can get the correct result on any
built-in group on the domain. But when I add a new group to the domain eg
MyCustomGroup, then write
If My.User.IsInRol e("MycustomGrou p") it returns false
It looks like the IsinRole function only works with built-in roles.
Bob
""Peter Huang" [MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:Z1******** ******@TK2MSFTN GXA02.phx.gbl.. .
Hi
I am not familar with AD.
But here is a link about a script which will list all the group certian
user belongs to.
You may try to run the script to see the MyCustomRole is in the list.
List User Group
http://www.rlmueller.net/List%20User%20Groups.htm
For detailed information about AD, I think you may try to post in the
newsgroup below.
microsoft.publi c.adsi.general
or
microsoft.publi c.win2000.activ e_directory
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.