updateContact vs updateMember

Hi,

is there something like suppressAuth : true on updateMember like there is on updateContact? I’m using onMemberCreated to add some info to a custom field on every member at creation. I can’t get it to work using memberUpdate (probably due to some security limits) so I’m using updateContact with suppressAuth:true. Works fine and I guess since this happens on the event of onMemberCreated it only adds the info to a member and not to every contact (which I don’t want). The info gets added to the member as well as the contact when I do this so I don’t really have a problem since it’s working but I don’t really understand why there is an updateMember, especially if I can get around it using updateContact.
Does anyone have a good answer to why there is an updateMember, when your’e supposed to use it and maybe also how?

Thanks

Did you ever find a solution to this? I get permission errors as well.

No, sorry.
I use wixMembers_onMemberCreated(event) at the event of the member being created but then I use contacts.updateContact to add the custom fields I need. Like I wrote, I can get it to work this way so I haven’t really searched very hard for a solution to use updateMember but I’m guessing it has something to do with collection permission. Since the member isn’t actually logged in when the event is triggered due to email confirmation and the member collection needs an approved role to be edited I think that’s where the problem lies. But like I said, in my case I can go around this. What are you trying to do?

Yea I noticed the same thing. I ended up using the updateContact approach as well– which worked for me. But I was trying to update member profile custom fields based on actions they take on the site. It’s strange that the updateMember call does not work, even for the site owners though.