Re: IsinRole function only works with built-in roles

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Bob, I know that on our domain here at work we have to reboot our machine to pick up the new definition from the DC. Have you tried that?

"Bob" <bdufour@xxxxxxxxxx> wrote in message news:OH70eMLDGHA.2320@xxxxxxxxxxxxxxxxxxxxxxx
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





.



Relevant Pages

  • Re: Adding custom views/maps to GLOBAL.MPT
    ... >Hi Bob, ... >(say a new custom view) and use Organizer to transfer it ... date, and rename it ...
    (microsoft.public.project2000)
  • Re: IsinRole function only works with built-in roles
    ... custom groups that User Bob belongs to do not appear in the list. ... I tested the Isinrole on the Customone on the local machine by specifying ... why does my custom groups that bob is a member do ... > on my domain controller then add an existing user to that group, user bob, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Outlining Tabs on Word 2003
    ... "Bob S" wrote in message ... In order to keep Normal.dot slim, should I delete the customized styles and macros from the Normal.dot list after copying them to the BobGlobal.dot list? ... But when I click Organizer and seek to select BobGlobal.dot as the template into which to copy styles and macros from normal.dot, I do not see BobGlobal.dot as an option. ... You can use this method to keep normal.dot slim and fast too by always saving your customizations to a custom template. ...
    (microsoft.public.word.newusers)
  • Re: How to determine if the logged on user is in a group
    ... when I ran the whoami.exe /groups the custom groups that Bob belongs to on ... although he is a member of these groups. ... > IsInRole works with domain accounts. ... >> looks at the local user groups, ...
    (microsoft.public.dotnet.security)
  • RE: Domain Controller Still Listed as WIN 2K DC
    ... Bob, since I can't figure out how to attach pictures to this post, I will ... What is the version of Windows running on your Domain Controller? ... > Server 2003, Standard ...
    (microsoft.public.windows.server.migration)