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;
}
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
add a comment |
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
add a comment |
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
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
javascript google-contacts
asked Jul 10 '18 at 1:13


Clay MurdockClay Murdock
63
63
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
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
add a comment |
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.
1
Doesn't apply to the question, since the asker states that he tried a valid inputtestthis@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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
1
Doesn't apply to the question, since the asker states that he tried a valid inputtestthis@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
add a comment |
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.
1
Doesn't apply to the question, since the asker states that he tried a valid inputtestthis@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
add a comment |
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.
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.
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 inputtestthis@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
add a comment |
1
Doesn't apply to the question, since the asker states that he tried a valid inputtestthis@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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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