CRM createContact() only for admins?

Is the CRM functions only for members who are admins? My code works great if I’m logged in as an Admin, but not as a normal Member.

What I am trying to do is allow the member to provide me a new contact that I then take the new contact id and send an email to.

Hi,
Please share your code so we can assist you, the createContact() function isn’t restricted for admins only.

used this code and no feedback from page neither created the contact. what am i missing?

can i run this in dev mode?
can i run this in an open page in a published site?

both of them did not do anything

let firstName = “james” ; // get first name
let lastName = “bond” ; // get last name
let email = “jamesbond@gmail.com” ; // get email address
let phone = “000” ; // get phone number

wixCrm.createContact( {
“firstName” : firstName,
“lastName” : lastName,
“emails” : [email],
“phones” : [phone]
} )
.then( (contactId) => {
console.log( “contact created” );
} )
. catch ( (err) => {
let errorMsg = err;
console.log(errorMsg);

} );