Using LDIFDE for listing members of a group

M

Matt

Hello

I am needing a listing of users in a group for importing
into another application we have.
Here is my current command line
ldifde -f L:\Export.ldf -s dc03 -d "ou=Domain
Users,dc=domain,dc=int" -p subtree -r "(&
(objectCategory=person)(objectClass=User)(memberof=All*)"
I am trying to get the membership for All Email Users
The command works with the memberof filter.

Any suggestions would be greatly apprecaited

thanks
 
G

Guest

-----Original Message-----
Hello

I am needing a listing of users in a group for importing
into another application we have.
Here is my current command line
ldifde -f L:\Export.ldf -s dc03 -d "ou=Domain
Users,dc=domain,dc=int" -p subtree -r "(&
(objectCategory=person)(objectClass=User)(memberof=All*)"
I am trying to get the membership for All Email Users
The command works with the memberof filter.

Any suggestions would be greatly apprecaited

thanks
.
 
E

Eric Fleischman [MSFT]

You picked an unfortunate example.
Most other groups would work just fine. Domain Users is a bad example as
most users are a member via primary group which is a different mechanism.

So your approach should work for groups other than domain users. Oh, and if
this is a universal group, I would focus against a GC and not just any 'ol
DC.

~Eric
 
M

Matt

I think you missed what I have for the command line. The
Domain Users is a OU that we have our users in not the
group. In that OU, I want to find all the users in the OU
that has membership to "All Email Users"

-----Original Message-----
You picked an unfortunate example.
Most other groups would work just fine. Domain Users is a bad example as
most users are a member via primary group which is a different mechanism.

So your approach should work for groups other than domain users. Oh, and if
this is a universal group, I would focus against a GC and not just any 'ol
DC.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Hello

I am needing a listing of users in a group for importing
into another application we have.
Here is my current command line
ldifde -f L:\Export.ldf -s dc03 -d "ou=Domain
Users,dc=domain,dc=int" -p subtree -r "(&
(objectCategory=person)(objectClass=User) (memberof=All*)"
I am trying to get the membership for All Email Users
The command works with the memberof filter.

Any suggestions would be greatly apprecaited

thanks


.
 
E

Eric Fleischman [MSFT]

Ah true, I was thinking you were looking at domain users, the group.
So if you want to dump membership of a group just dump the DN and memberOf
attributes of the group. I'm not clear on the question then.....
Can you define what "All Email Users" is? That's just a single group?



--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Matt said:
I think you missed what I have for the command line. The
Domain Users is a OU that we have our users in not the
group. In that OU, I want to find all the users in the OU
that has membership to "All Email Users"

-----Original Message-----
You picked an unfortunate example.
Most other groups would work just fine. Domain Users is a bad example as
most users are a member via primary group which is a different mechanism.

So your approach should work for groups other than domain users. Oh, and if
this is a universal group, I would focus against a GC and not just any 'ol
DC.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Hello

I am needing a listing of users in a group for importing
into another application we have.
Here is my current command line
ldifde -f L:\Export.ldf -s dc03 -d "ou=Domain
Users,dc=domain,dc=int" -p subtree -r "(&
(objectCategory=person)(objectClass=User) (memberof=All*)"
I am trying to get the membership for All Email Users
The command works with the memberof filter.

Any suggestions would be greatly apprecaited

thanks


.
 
M

Matt

All Email Users is a distribution group that I trying to
get the list of users and their attributes in ldif
format. I need this export to import in to a network
application that will email them.

thanks for the help
Matt
-----Original Message-----
Ah true, I was thinking you were looking at domain users, the group.
So if you want to dump membership of a group just dump the DN and memberOf
attributes of the group. I'm not clear on the question then.....
Can you define what "All Email Users" is? That's just a single group?



--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


I think you missed what I have for the command line. The
Domain Users is a OU that we have our users in not the
group. In that OU, I want to find all the users in the OU
that has membership to "All Email Users"

and
confers no rights


.
 
J

Jerold Schulman

If you have a Windows XP domain member, or Windows Server 2003 DC or member
server, run the following batch:

@echo off
setlocal enabledelayedexpansion
for /f "Tokens=*" %%u in ('dsquery user "OU=Domain Users,DC=Dom,DC=COM"') do (
for /f "Tokens=*" %%g in ('dsget user %%u -memberOf^|Findstr /i /L /c:"All
Email Users"') Do (
REM The above 2 lines are 1 line
@echo %%u %%g
)
)
endlocal


I think you missed what I have for the command line. The
Domain Users is a OU that we have our users in not the
group. In that OU, I want to find all the users in the OU
that has membership to "All Email Users"

-----Original Message-----
You picked an unfortunate example.
Most other groups would work just fine. Domain Users is a bad example as
most users are a member via primary group which is a different mechanism.

So your approach should work for groups other than domain users. Oh, and if
this is a universal group, I would focus against a GC and not just any 'ol
DC.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Hello

I am needing a listing of users in a group for importing
into another application we have.
Here is my current command line
ldifde -f L:\Export.ldf -s dc03 -d "ou=Domain
Users,dc=domain,dc=int" -p subtree -r "(&
(objectCategory=person)(objectClass=User) (memberof=All*)"
I am trying to get the membership for All Email Users
The command works with the memberof filter.

Any suggestions would be greatly apprecaited

thanks


.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
E

Eric Fleischman [MSFT]

Ok, then perhaps:
ldifde -f output.ldf -d "groupDN"

Of coure substitute the group distinguished name for groupDN.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Matt said:
All Email Users is a distribution group that I trying to
get the list of users and their attributes in ldif
format. I need this export to import in to a network
application that will email them.

thanks for the help
Matt
-----Original Message-----
Ah true, I was thinking you were looking at domain users, the group.
So if you want to dump membership of a group just dump the DN and memberOf
attributes of the group. I'm not clear on the question then.....
Can you define what "All Email Users" is? That's just a single group?



--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


I think you missed what I have for the command line. The
Domain Users is a OU that we have our users in not the
group. In that OU, I want to find all the users in the OU
that has membership to "All Email Users"


-----Original Message-----
You picked an unfortunate example.
Most other groups would work just fine. Domain Users is
a bad example as
most users are a member via primary group which is a
different mechanism.

So your approach should work for groups other than
domain users. Oh, and if
this is a universal group, I would focus against a GC
and not just any 'ol
DC.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and
confers no rights
Use of included script samples are subject to the terms
specified at
http://www.microsoft.com/info/cpyright.htm


message
Hello

I am needing a listing of users in a group for
importing
into another application we have.
Here is my current command line
ldifde -f L:\Export.ldf -s dc03 -d "ou=Domain
Users,dc=domain,dc=int" -p subtree -r "(&
(objectCategory=person)(objectClass=User)
(memberof=All*)"
I am trying to get the membership for All Email Users
The command works with the memberof filter.

Any suggestions would be greatly apprecaited

thanks


.


.
 
M

Matt

That does work somewhat. It only gives me the DN of
users. I also need attributes like email. This doesn't
seem possible with ldifde.

thanks for the help
-----Original Message-----
Ok, then perhaps:
ldifde -f output.ldf -d "groupDN"

Of coure substitute the group distinguished name for groupDN.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


All Email Users is a distribution group that I trying to
get the list of users and their attributes in ldif
format. I need this export to import in to a network
application that will email them.

thanks for the help
Matt
-----Original Message-----
Ah true, I was thinking you were looking at domain users, the group.
So if you want to dump membership of a group just dump the DN and memberOf
attributes of the group. I'm not clear on the question then.....
Can you define what "All Email Users" is? That's just a single group?
and
confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


I think you missed what I have for the command line. The
Domain Users is a OU that we have our users in not the
group. In that OU, I want to find all the users in
the
OU
that has membership to "All Email Users"


-----Original Message-----
You picked an unfortunate example.
Most other groups would work just fine. Domain Users is
a bad example as
most users are a member via primary group which is a
different mechanism.

So your approach should work for groups other than
domain users. Oh, and if
this is a universal group, I would focus against a GC
and not just any 'ol
DC.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and
confers no rights
Use of included script samples are subject to the terms
specified at
http://www.microsoft.com/info/cpyright.htm


message
Hello

I am needing a listing of users in a group for
importing
into another application we have.
Here is my current command line
ldifde -f L:\Export.ldf -s dc03 -d "ou=Domain
Users,dc=domain,dc=int" -p subtree -r "(&
(objectCategory=person)(objectClass=User)
(memberof=All*)"
I am trying to get the membership for All Email Users
The command works with the memberof filter.

Any suggestions would be greatly apprecaited

thanks


.



.


.
 
E

Eric Fleischman [MSFT]

Email of what? the user? or the group?
If the user, you would also need to dump the user. So you can wrap that up
in a script and call ldifde multiple times.
If the group, it would be included in that.



--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Matt said:
That does work somewhat. It only gives me the DN of
users. I also need attributes like email. This doesn't
seem possible with ldifde.

thanks for the help
-----Original Message-----
Ok, then perhaps:
ldifde -f output.ldf -d "groupDN"

Of coure substitute the group distinguished name for groupDN.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


All Email Users is a distribution group that I trying to
get the list of users and their attributes in ldif
format. I need this export to import in to a network
application that will email them.

thanks for the help
Matt

-----Original Message-----
Ah true, I was thinking you were looking at domain
users, the group.
So if you want to dump membership of a group just dump
the DN and memberOf
attributes of the group. I'm not clear on the question
then.....
Can you define what "All Email Users" is? That's just a
single group?



--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and
confers no rights
Use of included script samples are subject to the terms
specified at
http://www.microsoft.com/info/cpyright.htm


message
I think you missed what I have for the command line. The
Domain Users is a OU that we have our users in not the
group. In that OU, I want to find all the users in the
OU
that has membership to "All Email Users"


-----Original Message-----
You picked an unfortunate example.
Most other groups would work just fine. Domain Users is
a bad example as
most users are a member via primary group which is a
different mechanism.

So your approach should work for groups other than
domain users. Oh, and if
this is a universal group, I would focus against a GC
and not just any 'ol
DC.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties,
and
confers no rights
Use of included script samples are subject to the terms
specified at
http://www.microsoft.com/info/cpyright.htm


message
Hello

I am needing a listing of users in a group for
importing
into another application we have.
Here is my current command line
ldifde -f L:\Export.ldf -s dc03 -d "ou=Domain
Users,dc=domain,dc=int" -p subtree -r "(&
(objectCategory=person)(objectClass=User)
(memberof=All*)"
I am trying to get the membership for All Email Users
The command works with the memberof filter.

Any suggestions would be greatly apprecaited

thanks


.



.


.
 

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

Similar Threads

LDIFDE Export Help! 1
LDIFDE - Export 2
export disabled account 1
CSVDE and LDIFDE 1
LDIFDE 2
LDF File Line Breaks 2
Filtering LDIFDE export 9
Import users to another domain with LDIFDE 1

Top