Answers.Body: <p>Solution:</p>
  <ul>
  <li>create a new user, add permissions:
  <ul>
  <li>View all contacts</li>
  <li>Access CiviCRM</li>
  <li>Access CiviMail</li>
  </ul>
  </li>
  <li>go to admin/config/civicrm/civicrm-cron</li>
  </ul>
  <p>See also: <a href="https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#choosing-a-cms-user" rel="nofollow noreferrer">https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#choosing-a-cms-user</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-04T17:54:54.920Z
Answers.LastActivityDate: 2020-11-04T17:54:54.920Z
Answers.UserDisplayName: Webmaster COVS
Answers.Body: <p>You should give the permission to cron user.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-25T17:09:57.653Z
Answers.LastActivityDate: 2020-10-25T17:09:57.653Z
Answers.UserDisplayName: Tapash
Body: <p>I am trying to executed a job to send out a mailing via CiviMail. This works when I do this manually, but fails when scheduled:</p>
  <blockquote>
  <p>permission check failed for Group/get call; insufficient permission: require access CiviCRM</p>
  </blockquote>
  <p>What permission should I add to which user?</p>
  <p>I am using Drupal 7 cron.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-30T14:40:03.917Z
Comments.Text: It looks like you've answered your own question here, which is great. This would fit better into the StackExchange format if you could post the solution as an answer. This makes it clearer for others which is the question and which is the answer.
Comments.UserDisplayName: William Mortada
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-11-04T17:55:21.703Z
Comments.Text: Thanks for this. Did as you proposed.
Comments.UserDisplayName: Webmaster COVS
Tags: <civimail><cron-job><scheduled-job>
Title: Mailing only works when executed manually, not scheduled
ThreadText: # Mailing only works when executed manually, not scheduled
  
  (Asked by: username_0 on 2020-10-25)
  
  I am trying to executed a job to send out a mailing via CiviMail. This works when I do this manually, but fails when scheduled:
  
  > permission check failed for Group/get call; insufficient permission: require access CiviCRM
  
  What permission should I add to which user?
  
  I am using Drupal 7 cron.
  
  **Tags:** civimail, cron-job, scheduled-job
  
  > **Comments:**
  > **username_1**: It looks like you've answered your own question here, which is great. This would fit better into the StackExchange format if you could post the solution as an answer. This makes it clearer for others which is the question and which is the answer.  
  > **username_0**: Thanks for this. Did as you proposed.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2020-11-04. Score: 2 | Accepted answer
  
  Solution:
  
  * create a new user, add permissions:
    + View all contacts
    + Access CiviCRM
    + Access CiviMail
  * go to admin/config/civicrm/civicrm-cron
  
  See also: <https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#choosing-a-cms-user>
  
  
  ---
  
  ### Answer by username_2 on 2020-10-25. Score: 0
  
  You should give the permission to cron user.
  
  
  ---
  
  