Re: LDP query for user groups nested?
- From: "Joe Richards [MVP]" <humorexpress@xxxxxxxxxxx>
- Date: Thu, 14 Jul 2005 13:09:50 -0400
Yep, my memberof (http://www.joeware.net/win/free/tools/memberof.htm) command line tool will also enumerate the groups for a user like this as well. Entirely recursive.
-- Joe Richards Microsoft MVP Windows Server Directory Services www.joeware.net
Al Mulnick wrote:
It is painful. It is where script can be useful and your logic is correct that you need to query each additional group similar to this: http://www.rlmueller.net/Programs/EnumGroup.txt
I've since modified a version similar to this that's used for group memberships only i.e. query a group and ask it for all of its members and chase those membrs that are groups then munge. Found it useful for tracking and auditing group memberships to find out if low-level groups were being given permission via membership to high-level permissioned groups. Some very useful logic in the above link.
Anyhow, you can see the logic flow in the above example of a script. I haven't tested it across domains, but the concept should work just fine.
Al
"Joe Richards [MVP]" <humorexpress@xxxxxxxxxxx> wrote in message news:uwEFhaBiFHA.1048@xxxxxxxxxxxxxxxxxxxxxxx
No you can't recursively gather group memberships with a single query other than as Dean suggests using tokenGroups. Note that this will not chase into nesting into other domains.
Yes it is painful.
-- Joe Richards Microsoft MVP Windows Server Directory Services www.joeware.net
Eric - ARUP wrote:
Hello
Is it possible to query AD for a user to get the groups he is a member of, and if any of those groups are nested then also return those uplevel groups as well.
Currently testing this we query the user and get his memberOf, but unless we query each group we dont get the uplevel groups for those that are nested without a seperate query.
thanks
e-
.
- Follow-Ups:
- Re: LDP query for user groups nested?
- From: Al Mulnick
- Re: LDP query for user groups nested?
- References:
- LDP query for user groups nested?
- From: Eric - ARUP
- Re: LDP query for user groups nested?
- From: Joe Richards [MVP]
- Re: LDP query for user groups nested?
- From: Al Mulnick
- LDP query for user groups nested?
- Prev by Date: Firewall GPO question
- Next by Date: Re: LDP query for user groups nested?
- Previous by thread: Re: LDP query for user groups nested?
- Next by thread: Re: LDP query for user groups nested?
- Index(es):
Relevant Pages
|