Our sharepoint user profiles are configured to have two additional AD synchronized, public custom properties, EmployeeID and CostCenter.
I need to read a list of users with the same CostCenter as the current user. I currently do this by iterating through all user profiles, but this takes about 30 sec. for >400 users. Is there some sort of CAML or similar query which can be used to "select" all users with CostCentre=x? Unfortunately CostCentre ist not a column in the "User Information List", so the nearby solution won't work.