Thursday, June 17, 2010

List a user's group membership

List group membership for a user

C:\Users\jqiu-admin>dsget user "CN=Peter Fordyce,OU=Kordia Solutions,OU=Division
s,OU=Prod,DC=internal,DC=local" -memberof > hi.txt


Finding Groups in Which a User Is a Member
Click Start, and then click Run.
In the Open box, type cmd.
At the command prompt, type the following command:
dsget user user_dn -memberof
This command uses the following value:
user_dn specifies the distinguished name of the user object for which you want to display group membership.
To view the complete syntax for this command, at a command prompt, type dsget user /?.

No comments:

Post a Comment