# CRM createContact() only for admins?

**URL:** <https://forum.wixstudio.com/t/crm-createcontact-only-for-admins/21522>\
**Category:** Ask the community\
**Tags:** wix-members-area, question, code\
**Created:** [May 19, 2020, 10:19pm UTC](https://forum.wixstudio.com/t/crm-createcontact-only-for-admins/21522 "2020-05-19T22:19:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![david89](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@david89](https://forum.wixstudio.com/u/david89)\
**Post date:** [May 19, 2020, 10:19pm UTC](https://forum.wixstudio.com/t/crm-createcontact-only-for-admins/21522/1 "2020-05-19T22:19:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![\_or](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/_or/32/1004_2.png) [@\_or](https://forum.wixstudio.com/u/_or)\
**Post date:** [May 25, 2020, 11:17am UTC](https://forum.wixstudio.com/t/crm-createcontact-only-for-admins/21522/2 "2020-05-25T11:17:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rpaseniero](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@rpaseniero](https://forum.wixstudio.com/u/rpaseniero)\
**Post date:** [July 8, 2020, 8:52am UTC](https://forum.wixstudio.com/t/crm-createcontact-only-for-admins/21522/3 "2020-07-08T08:52:10Z")

</div>

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](mailto: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);

```
} );

```
