member.setProperties() and member.setMemberProperties()ΒΆ
I took me an hour to figure out that member.setProperties() isn't the only game in town. There's also member.setMemberProperties(). If you've grabbed a member (in my case by iteration over all members in a site and checking whether some memberdata value needs to be migrated), the following is true:
member.setProperties()sets the properties on the currently authenticated uses. So if "reinout" is logged in and I'm callingsetProperties()on the member "maurits", it are still reinout's properties that are getting set. What??member.getPropertyproperly gets member's properties instead of those of the currently authenticated user.member.setMemberProperties()actually sets the properties on member.
This one surprised me.