Jump to content

Recommended Posts

Posted

Hi

 

I want to pull a list of users from from an OU in AD based on the date the user object was created.

 

I've had a look at creating a new query but I can't see a date created / modified field with which to query.

 

I'm sure it's possible, but I can't seem to see how!

 

Any help would be great

 

Thanks

Karl

Posted

With LDAP you can pull out the whenChanged and whenCreated attribute. For example (net command on Linux..):

 

titan ~ # net ads dn 'CN=administrator,CN=Users,DC=carrhill,DC=lancs,DC=sch,DC=uk' -U Administrator | grep when
Administrator's password:

whenCreated: 20060205132743.0Z
whenChanged: 20060214164856.0Z

 

Format is YYYYMMDDHHMMSS

Posted

Cheers guys

 

I ended up doing the following

 

(&(objectCategory=person)(objectClass=user)(&(whenCreated>=20060120000000.0Z)))

 

which works great

 

Thanks for your replies!

 

Karl

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...