Q: see all groups

G

Guest

Hello,
In Active Directory, I have a Global group: Global1 and MyUser is the member.
This Global1 group is the member of a Domain Local group: DomainLocal1. Now
when I use “net user MyUser /domain†I could not see DomainLocal1 in the
list. If I put MyUser directly to DomainLocal1 group, and run command again,
I see DomainLocal1 in the list.
How can I see all the groups that a user belongs?
Thanks,
Jim.
 
P

ptwilliams

You'd have to write a script that iteratively looks at all groups for a user
object, and then what groups they belong to and so forth. You could use the
memberOf back-ref attributes to do this.

It isn't as simple as simply pulling direct group membership though...



--

Paul Williams

http://www.msresource.net/
http://forums.msresource.net/

Hello,
In Active Directory, I have a Global group: Global1 and MyUser is the
member.
This Global1 group is the member of a Domain Local group: DomainLocal1. Now
when I use "net user MyUser /domain" I could not see DomainLocal1 in the
list. If I put MyUser directly to DomainLocal1 group, and run command again,
I see DomainLocal1 in the list.
How can I see all the groups that a user belongs?
Thanks,
Jim.
 
G

Guest

Paul Thanks,
I am already searching memberof in asp.net, is there any example for me to
check to see searching memberof back-ref. Google did not give me any result
about it.
 
P

ptwilliams

I was referring to memberOf. memberOf is a back-link object. That means,
that when you query it, it simply generates the values for you; it's a link.
You cannot add to it. This is what you'll need to access.

There's a good discussion of linked attributes here:
--
http://www.microsoft.com/resources/...techref/en-us/W2K3TR_schem_how.asp?frame=true


And here:
--
http://www.microsoft.com/resources/...it/en-us/distrib/dsbg_dat_dstm.asp?frame=true


--

Paul Williams

http://www.msresource.net/
http://forums.msresource.net/

Paul Thanks,
I am already searching memberof in asp.net, is there any example for me to
check to see searching memberof back-ref. Google did not give me any result
about it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top