ContactsApp.createContact() You do not have permission to perform that action





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I'm the admin for my google suite site. As of 2 weeks ago I keep getting the error "You do not have permission to perform that action." when trying to add any contacts programmatically. I've tried adding apis, removing permissions and reauthorizing, copying and pasting the script into new script files, copying the whole sheets files and nothing works. I've used different emails and names etc. I'm running this from my admin side and it worked fine a couple weeks ago.



This problem only happens with the line ContactsApp.createContact() and all other ContactsApp. methods work fine. I've tried all the suggestions I can find online and nothing is working.



function testthis(){



ContactsApp.createContact('Bob','Burger','testthis@gmail.com');

};


Any help or suggestions or troubleshooting would be greatly appreciated on this!










share|improve this question





























    1















    I'm the admin for my google suite site. As of 2 weeks ago I keep getting the error "You do not have permission to perform that action." when trying to add any contacts programmatically. I've tried adding apis, removing permissions and reauthorizing, copying and pasting the script into new script files, copying the whole sheets files and nothing works. I've used different emails and names etc. I'm running this from my admin side and it worked fine a couple weeks ago.



    This problem only happens with the line ContactsApp.createContact() and all other ContactsApp. methods work fine. I've tried all the suggestions I can find online and nothing is working.



    function testthis(){



    ContactsApp.createContact('Bob','Burger','testthis@gmail.com');

    };


    Any help or suggestions or troubleshooting would be greatly appreciated on this!










    share|improve this question

























      1












      1








      1








      I'm the admin for my google suite site. As of 2 weeks ago I keep getting the error "You do not have permission to perform that action." when trying to add any contacts programmatically. I've tried adding apis, removing permissions and reauthorizing, copying and pasting the script into new script files, copying the whole sheets files and nothing works. I've used different emails and names etc. I'm running this from my admin side and it worked fine a couple weeks ago.



      This problem only happens with the line ContactsApp.createContact() and all other ContactsApp. methods work fine. I've tried all the suggestions I can find online and nothing is working.



      function testthis(){



      ContactsApp.createContact('Bob','Burger','testthis@gmail.com');

      };


      Any help or suggestions or troubleshooting would be greatly appreciated on this!










      share|improve this question














      I'm the admin for my google suite site. As of 2 weeks ago I keep getting the error "You do not have permission to perform that action." when trying to add any contacts programmatically. I've tried adding apis, removing permissions and reauthorizing, copying and pasting the script into new script files, copying the whole sheets files and nothing works. I've used different emails and names etc. I'm running this from my admin side and it worked fine a couple weeks ago.



      This problem only happens with the line ContactsApp.createContact() and all other ContactsApp. methods work fine. I've tried all the suggestions I can find online and nothing is working.



      function testthis(){



      ContactsApp.createContact('Bob','Burger','testthis@gmail.com');

      };


      Any help or suggestions or troubleshooting would be greatly appreciated on this!







      javascript google-contacts






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 10 '18 at 1:13









      Clay MurdockClay Murdock

      63




      63
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Make sure that this scope:



          www.google.com/m8/feeds


          is added and also make sure your Contacts API is enabled in your Google Dev console.






          share|improve this answer
























          • Sorry for my ignorance. I've turned API's on and off before but don't understand why I need them. I've read all the documentation on it and it doesn't make sense when the programs usually work without dealing with them. How are they different than just permissions? How are they related to projects and how do I know i'm even looking at the correct project? Basically, What are they and what do they do.

            – Clay Murdock
            Jul 10 '18 at 18:42













          • When I go into my GSuite Admin console I see that Contacts API is enabled. But I know there is another screen with projects. I know I had to turn on a similar API before but it just quit working 2 weeks ago and I didn't change any settings that I know of. Thank you!

            – Clay Murdock
            Jul 10 '18 at 18:44











          • So this problem is fixed. The only thing different is that I switched back to the new google contacts in my admin console. They must have stopped supporting the old.

            – Clay Murdock
            Jul 10 '18 at 19:12











          • Problem not fixed. it came back. ha Started new API project and enabled the credentials. Fixed for a little bit but then a few days later, after I shared the sheet with a friend it stopped working again.

            – Clay Murdock
            Aug 3 '18 at 9:49











          • Scope is added. It does nothing for this issue. Any other suggestions?

            – Clay Murdock
            Aug 7 '18 at 14:33



















          -1














          I also had this problem. In my case, the error was originated in the fact that the format of the input data was not correct. For instance, if you are adding to your contacts an email address, check that this field has actually an email format, otherway the script may not perform.






          share|improve this answer



















          • 1





            Doesn't apply to the question, since the asker states that he tried a valid input testthis@gmail.com. Maybe you shoudl have posted this as a comment instead of an answer.

            – lofihelsinki
            Jan 3 at 13:32











          • I can not add comments yet, because i am too new to do it. Anyway could you fix the problem?

            – Cristóbal Andrés
            16 hours ago













          • I had the same problem again, and I realized that the origin of this was in the fact of having more than 25,000 contacts. I eliminated a few hundred, and it started working again without problems.

            – Cristóbal Andrés
            15 hours ago












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51255979%2fcontactsapp-createcontact-you-do-not-have-permission-to-perform-that-action%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Make sure that this scope:



          www.google.com/m8/feeds


          is added and also make sure your Contacts API is enabled in your Google Dev console.






          share|improve this answer
























          • Sorry for my ignorance. I've turned API's on and off before but don't understand why I need them. I've read all the documentation on it and it doesn't make sense when the programs usually work without dealing with them. How are they different than just permissions? How are they related to projects and how do I know i'm even looking at the correct project? Basically, What are they and what do they do.

            – Clay Murdock
            Jul 10 '18 at 18:42













          • When I go into my GSuite Admin console I see that Contacts API is enabled. But I know there is another screen with projects. I know I had to turn on a similar API before but it just quit working 2 weeks ago and I didn't change any settings that I know of. Thank you!

            – Clay Murdock
            Jul 10 '18 at 18:44











          • So this problem is fixed. The only thing different is that I switched back to the new google contacts in my admin console. They must have stopped supporting the old.

            – Clay Murdock
            Jul 10 '18 at 19:12











          • Problem not fixed. it came back. ha Started new API project and enabled the credentials. Fixed for a little bit but then a few days later, after I shared the sheet with a friend it stopped working again.

            – Clay Murdock
            Aug 3 '18 at 9:49











          • Scope is added. It does nothing for this issue. Any other suggestions?

            – Clay Murdock
            Aug 7 '18 at 14:33
















          0














          Make sure that this scope:



          www.google.com/m8/feeds


          is added and also make sure your Contacts API is enabled in your Google Dev console.






          share|improve this answer
























          • Sorry for my ignorance. I've turned API's on and off before but don't understand why I need them. I've read all the documentation on it and it doesn't make sense when the programs usually work without dealing with them. How are they different than just permissions? How are they related to projects and how do I know i'm even looking at the correct project? Basically, What are they and what do they do.

            – Clay Murdock
            Jul 10 '18 at 18:42













          • When I go into my GSuite Admin console I see that Contacts API is enabled. But I know there is another screen with projects. I know I had to turn on a similar API before but it just quit working 2 weeks ago and I didn't change any settings that I know of. Thank you!

            – Clay Murdock
            Jul 10 '18 at 18:44











          • So this problem is fixed. The only thing different is that I switched back to the new google contacts in my admin console. They must have stopped supporting the old.

            – Clay Murdock
            Jul 10 '18 at 19:12











          • Problem not fixed. it came back. ha Started new API project and enabled the credentials. Fixed for a little bit but then a few days later, after I shared the sheet with a friend it stopped working again.

            – Clay Murdock
            Aug 3 '18 at 9:49











          • Scope is added. It does nothing for this issue. Any other suggestions?

            – Clay Murdock
            Aug 7 '18 at 14:33














          0












          0








          0







          Make sure that this scope:



          www.google.com/m8/feeds


          is added and also make sure your Contacts API is enabled in your Google Dev console.






          share|improve this answer













          Make sure that this scope:



          www.google.com/m8/feeds


          is added and also make sure your Contacts API is enabled in your Google Dev console.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 10 '18 at 6:57









          nooguinoogui

          12.1k31223




          12.1k31223













          • Sorry for my ignorance. I've turned API's on and off before but don't understand why I need them. I've read all the documentation on it and it doesn't make sense when the programs usually work without dealing with them. How are they different than just permissions? How are they related to projects and how do I know i'm even looking at the correct project? Basically, What are they and what do they do.

            – Clay Murdock
            Jul 10 '18 at 18:42













          • When I go into my GSuite Admin console I see that Contacts API is enabled. But I know there is another screen with projects. I know I had to turn on a similar API before but it just quit working 2 weeks ago and I didn't change any settings that I know of. Thank you!

            – Clay Murdock
            Jul 10 '18 at 18:44











          • So this problem is fixed. The only thing different is that I switched back to the new google contacts in my admin console. They must have stopped supporting the old.

            – Clay Murdock
            Jul 10 '18 at 19:12











          • Problem not fixed. it came back. ha Started new API project and enabled the credentials. Fixed for a little bit but then a few days later, after I shared the sheet with a friend it stopped working again.

            – Clay Murdock
            Aug 3 '18 at 9:49











          • Scope is added. It does nothing for this issue. Any other suggestions?

            – Clay Murdock
            Aug 7 '18 at 14:33



















          • Sorry for my ignorance. I've turned API's on and off before but don't understand why I need them. I've read all the documentation on it and it doesn't make sense when the programs usually work without dealing with them. How are they different than just permissions? How are they related to projects and how do I know i'm even looking at the correct project? Basically, What are they and what do they do.

            – Clay Murdock
            Jul 10 '18 at 18:42













          • When I go into my GSuite Admin console I see that Contacts API is enabled. But I know there is another screen with projects. I know I had to turn on a similar API before but it just quit working 2 weeks ago and I didn't change any settings that I know of. Thank you!

            – Clay Murdock
            Jul 10 '18 at 18:44











          • So this problem is fixed. The only thing different is that I switched back to the new google contacts in my admin console. They must have stopped supporting the old.

            – Clay Murdock
            Jul 10 '18 at 19:12











          • Problem not fixed. it came back. ha Started new API project and enabled the credentials. Fixed for a little bit but then a few days later, after I shared the sheet with a friend it stopped working again.

            – Clay Murdock
            Aug 3 '18 at 9:49











          • Scope is added. It does nothing for this issue. Any other suggestions?

            – Clay Murdock
            Aug 7 '18 at 14:33

















          Sorry for my ignorance. I've turned API's on and off before but don't understand why I need them. I've read all the documentation on it and it doesn't make sense when the programs usually work without dealing with them. How are they different than just permissions? How are they related to projects and how do I know i'm even looking at the correct project? Basically, What are they and what do they do.

          – Clay Murdock
          Jul 10 '18 at 18:42







          Sorry for my ignorance. I've turned API's on and off before but don't understand why I need them. I've read all the documentation on it and it doesn't make sense when the programs usually work without dealing with them. How are they different than just permissions? How are they related to projects and how do I know i'm even looking at the correct project? Basically, What are they and what do they do.

          – Clay Murdock
          Jul 10 '18 at 18:42















          When I go into my GSuite Admin console I see that Contacts API is enabled. But I know there is another screen with projects. I know I had to turn on a similar API before but it just quit working 2 weeks ago and I didn't change any settings that I know of. Thank you!

          – Clay Murdock
          Jul 10 '18 at 18:44





          When I go into my GSuite Admin console I see that Contacts API is enabled. But I know there is another screen with projects. I know I had to turn on a similar API before but it just quit working 2 weeks ago and I didn't change any settings that I know of. Thank you!

          – Clay Murdock
          Jul 10 '18 at 18:44













          So this problem is fixed. The only thing different is that I switched back to the new google contacts in my admin console. They must have stopped supporting the old.

          – Clay Murdock
          Jul 10 '18 at 19:12





          So this problem is fixed. The only thing different is that I switched back to the new google contacts in my admin console. They must have stopped supporting the old.

          – Clay Murdock
          Jul 10 '18 at 19:12













          Problem not fixed. it came back. ha Started new API project and enabled the credentials. Fixed for a little bit but then a few days later, after I shared the sheet with a friend it stopped working again.

          – Clay Murdock
          Aug 3 '18 at 9:49





          Problem not fixed. it came back. ha Started new API project and enabled the credentials. Fixed for a little bit but then a few days later, after I shared the sheet with a friend it stopped working again.

          – Clay Murdock
          Aug 3 '18 at 9:49













          Scope is added. It does nothing for this issue. Any other suggestions?

          – Clay Murdock
          Aug 7 '18 at 14:33





          Scope is added. It does nothing for this issue. Any other suggestions?

          – Clay Murdock
          Aug 7 '18 at 14:33













          -1














          I also had this problem. In my case, the error was originated in the fact that the format of the input data was not correct. For instance, if you are adding to your contacts an email address, check that this field has actually an email format, otherway the script may not perform.






          share|improve this answer



















          • 1





            Doesn't apply to the question, since the asker states that he tried a valid input testthis@gmail.com. Maybe you shoudl have posted this as a comment instead of an answer.

            – lofihelsinki
            Jan 3 at 13:32











          • I can not add comments yet, because i am too new to do it. Anyway could you fix the problem?

            – Cristóbal Andrés
            16 hours ago













          • I had the same problem again, and I realized that the origin of this was in the fact of having more than 25,000 contacts. I eliminated a few hundred, and it started working again without problems.

            – Cristóbal Andrés
            15 hours ago
















          -1














          I also had this problem. In my case, the error was originated in the fact that the format of the input data was not correct. For instance, if you are adding to your contacts an email address, check that this field has actually an email format, otherway the script may not perform.






          share|improve this answer



















          • 1





            Doesn't apply to the question, since the asker states that he tried a valid input testthis@gmail.com. Maybe you shoudl have posted this as a comment instead of an answer.

            – lofihelsinki
            Jan 3 at 13:32











          • I can not add comments yet, because i am too new to do it. Anyway could you fix the problem?

            – Cristóbal Andrés
            16 hours ago













          • I had the same problem again, and I realized that the origin of this was in the fact of having more than 25,000 contacts. I eliminated a few hundred, and it started working again without problems.

            – Cristóbal Andrés
            15 hours ago














          -1












          -1








          -1







          I also had this problem. In my case, the error was originated in the fact that the format of the input data was not correct. For instance, if you are adding to your contacts an email address, check that this field has actually an email format, otherway the script may not perform.






          share|improve this answer













          I also had this problem. In my case, the error was originated in the fact that the format of the input data was not correct. For instance, if you are adding to your contacts an email address, check that this field has actually an email format, otherway the script may not perform.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 3 at 13:27









          Cristóbal AndrésCristóbal Andrés

          1




          1








          • 1





            Doesn't apply to the question, since the asker states that he tried a valid input testthis@gmail.com. Maybe you shoudl have posted this as a comment instead of an answer.

            – lofihelsinki
            Jan 3 at 13:32











          • I can not add comments yet, because i am too new to do it. Anyway could you fix the problem?

            – Cristóbal Andrés
            16 hours ago













          • I had the same problem again, and I realized that the origin of this was in the fact of having more than 25,000 contacts. I eliminated a few hundred, and it started working again without problems.

            – Cristóbal Andrés
            15 hours ago














          • 1





            Doesn't apply to the question, since the asker states that he tried a valid input testthis@gmail.com. Maybe you shoudl have posted this as a comment instead of an answer.

            – lofihelsinki
            Jan 3 at 13:32











          • I can not add comments yet, because i am too new to do it. Anyway could you fix the problem?

            – Cristóbal Andrés
            16 hours ago













          • I had the same problem again, and I realized that the origin of this was in the fact of having more than 25,000 contacts. I eliminated a few hundred, and it started working again without problems.

            – Cristóbal Andrés
            15 hours ago








          1




          1





          Doesn't apply to the question, since the asker states that he tried a valid input testthis@gmail.com. Maybe you shoudl have posted this as a comment instead of an answer.

          – lofihelsinki
          Jan 3 at 13:32





          Doesn't apply to the question, since the asker states that he tried a valid input testthis@gmail.com. Maybe you shoudl have posted this as a comment instead of an answer.

          – lofihelsinki
          Jan 3 at 13:32













          I can not add comments yet, because i am too new to do it. Anyway could you fix the problem?

          – Cristóbal Andrés
          16 hours ago







          I can not add comments yet, because i am too new to do it. Anyway could you fix the problem?

          – Cristóbal Andrés
          16 hours ago















          I had the same problem again, and I realized that the origin of this was in the fact of having more than 25,000 contacts. I eliminated a few hundred, and it started working again without problems.

          – Cristóbal Andrés
          15 hours ago





          I had the same problem again, and I realized that the origin of this was in the fact of having more than 25,000 contacts. I eliminated a few hundred, and it started working again without problems.

          – Cristóbal Andrés
          15 hours ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51255979%2fcontactsapp-createcontact-you-do-not-have-permission-to-perform-that-action%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith