I have an interesting problem... I wrote a custom import to pull data from our HR software into DNN and it works beautifully. Additionally, I have a "company directory" module plugged in to that data to search for people in different departments, list whole departments, etc.
So the problem is that if I don't touch the profiles at all (no updates), my company directory can find people and their supervisors and/or direct reports by using the following code (this is to get somebody's supervisor, having alraedy pulled their supervisor ID from their profile):
UserController.GetUsersByProfileProperty(PortalId, "Employee ID", supervisorId, 0, 100, ref tmp)
However... if I go update, say, my own profile... I can no longer find my supervisor using this code, unless I also go touch their profile too. An interesting side effect I noticed, is that in the User Management of DNN, I *CANNOT* search by those custom profile fields, unless I manually touch each and every individual profile and update it. The second I update them, I can suddenly perform a search using those custom profile fields.
I figure it has something to do with not being able to search by the profile field in User Management, though as long as I do a completely fresh import and don't touch anything, then it all works just fine.
This may be a non-issue because it doesn't seem to occur in my dev environment (4.3.7), but does in my staging environment (4.3.6). I will try upgrading the staging environment and post observations.
- Fooberichu