Click to See Complete Forum and Search --> : Export group membership for user in Active Directory


uppsju
05-10-2007, 07:12 AM
Hi,

I'm trying to export which Active Directory groups a user is member of, using csvde.

csvde -f exportfilename.csv -d "CN=Espen Johansen,OU=INfocare,OU=External,OU=Users,OU=NO,DC=nmea,DC=a bb,DC=com"
pause

This writes the information about "Espen Johansen" in the given unit and domain.
...except for the parts I'm interested in :/

I know you can export a list of members of a given group, but is it possible also to export a list of groups for a specific member?

Trav2003
05-18-2007, 12:29 AM
Hi,

I'm trying to export which Active Directory groups a user is member of, using csvde.

csvde -f exportfilename.csv -d "CN=Espen Johansen,OU=INfocare,OU=External,OU=Users,OU=NO,DC=nmea,DC=a bb,DC=com"
pause

This writes the information about "Espen Johansen" in the given unit and domain.
...except for the parts I'm interested in :/

I know you can export a list of members of a given group, but is it possible also to export a list of groups for a specific member?

The MemberOf collection holds all the group information for an individual user.

At work I've been using VBScript and the ADSI LDAP/WinNT bindings to bind to the object then can pull whatever information I need...

Set oWhatever = GetObject(LDAP://<distinguished name>)

Then you can loop through and get whatever you want and output it wherever...