Active directory ServiceObject methods

  • 5 March 2009
  • 2 replies
  • 0 views

Badge +1

How can I get a list of all users in my AD with a specific property, e.g. where City equals Miami?

I tried to add  the following methods to my SmartObject:

Get List
Load

=> has no city parameter


Find User with Property Value
Object Property Name (Text) - Required: "City"
Object Property Value (Text) - Required: "Miami"
Unique Name (Text) - Required

=> what's the meaning of the third parameter? Adding an unique name as a required parameter seems to result in every case in a list with only one item!?



Search AD Node with Property
This method seemd to be exactly what I needed but I'm not quite sure if I used it in the right way:

Object Property Name (Text) - Required: "City"
Object Property Value (Text) - Required: "Miami"


=> should return a list of 5 users, but the list is empty!?


In the "Add SmartObject" method wizard I tried to set each "Type" (Method Details) to List or Read (does this make a difference?) but that doesn't change anything. Due to working with an administrator account I suppose no authentication/authorisation issues.

Thanks for any help!
 

 


2 replies

Badge +5

I have not tested this, but the Active Directory attribute for 'city' is actually 'l' (lower case L).  I'm assuming that it is short for 'location', but who knows.  Try passing that in as the property name and see if it works.

Active Directory Attributes:  http://computerperformance.co.uk/Logon/LDAP_attributes_active_directory.htm

 

Badge +1
Thanks erice, that works!

Reply