Hi, I’m creating my first wix site right now and trying to use the wix-crm API to add contact information and some custom fields for members after they have been approved and enter some additional information in a profile page. I’m seeing the following error in the console when submitting the form: “permission_denied, details: {“RequiredRole”:“Anonymous User”,“GivenIds”:“member id is present here”}”.
What am I missing here? Why would the required role be “anonymous user” when the only roles are “Visitor” “Member” and “Admin”?
If you’re logged-in as a member to the site, we block the ability to create/update contact information. This is due to security and functional design of wix sites - when your site’s visitor trigger createContact code execution, it binds the specific visitor’s session to newly created contact . When you’re already a member, we don’t want to override the session or member’s information. we’re currently designing the API for updating member’s information explicitly.
note that we’ll update the docs and returned error to make it more clear.
Hi, I would like to know, This answer is given in 2018. Is this problem sorted out? or still we a member cannot update its information in his own contact through code? Please help.