Re: IsinRole function only works with built-in roles
- From: "Bob" <bdufour@xxxxxxxxxx>
- Date: Thu, 29 Dec 2005 15:04:45 -0500
Additional Info:
I also looked at whoami /groups on my workstation and I notice that the
custom groups that User Bob belongs to do not appear in the list. I see 15
user groups. One custom one I created on the local machine, but none that
have been created on the DC.
I tested the Isinrole on the Customone on the local machine by specifying
the domain name and the local group in the isinrole and that works fine.
So the question becomes, why does my custom groups that bob is a member do
not get detected by whoami and by the system procedures that isinrole uses?
Sorry can't put it another way?
Any help again greatly appreciated.
Bob
"Bob" <bdufour@xxxxxxxxxx> wrote in message
news:%23FSjH6JDGHA.1032@xxxxxxxxxxxxxxxxxxxxxxx
> This a bit of a second post on same subject, my apologies.
>
> IsinRole function only works with built-in roles. If I create a new group
> on my domain controller then add an existing user to that group, user bob,
> group TestUsers and then try to determine if My.user.Isinrole("TestUsers")
> I always get a false, which is incorrect.
> If I put Bob as part of Administrators or any other built-in group on the
> DC and look at My.User.isinrole("Administrators") I get true, which is
> correct
>
> Is this a bug? I need to determine if my application's user is part of a
> group I created on my domain controller. If I can't use isinrole to do
> that, how can I do that? I've looked at the walkthrough for custom
> authentication but that's not what I need to do. I simply need to be able
> to see if my user is in a group I created on the domain controller.
>
> Any help would be appreciated.
>
> Bob
>
>
.
- Follow-Ups:
- Re: IsinRole function only works with built-in roles
- From: Scott M
- Re: IsinRole function only works with built-in roles
- References:
- Prev by Date: Re: Questions about Declare with Windows API functions
- Next by Date: windows xp cd writing support (can't find imapi.h) HELP!
- Previous by thread: IsinRole function only works with built-in roles
- Next by thread: Re: IsinRole function only works with built-in roles
- Index(es):
Relevant Pages
|