There is a custom profile property such as EmployeeID defined. With
the EmployeeID value known, how can I get the corresponding
userprofile object? I am using the brutal force of looping all the
profiles to check for a match such as
profile["EmployeeID"].value.tostring() == xyz. This is not efficient
of course.
There must be better ways doing this.
Any suggestions or code snippet will be greatly appreciated.
Do you know someone who can help? Share a link to this thread on twitter, or facebook.