Answers.Body: <p>Changed to cli-Method via Crontab. Since I use Mysql 8 --&gt;
  Changed Mysql Auth Method for civicrm Mysql user:</p>
  <p><a href="https://dcblog.dev/mysql-80-error-the-server-requested-authentication-method-unknown-to-the-client" rel="nofollow noreferrer">https://dcblog.dev/mysql-80-error-the-server-requested-authentication-method-unknown-to-the-client</a></p>
  <p>error: The server requested authentication method unknown to the client The solution is to change the default authentication method to mysql_native_password.</p>
  <p>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-21T13:38:33.283Z
Answers.LastActivityDate: 2021-09-21T13:38:33.283Z
Answers.UserDisplayName: Mich___
Answers.Body: <p>Can you make sure cronuser wordpress user has administrator permission or role. It needs most of the Civi permission to run schedule jobs.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-12T14:59:48.050Z
Answers.Text: see image attached above. it has administrator role in wordpress.  what else could be the problem?
Answers.UserDisplayName: Mich___
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-12T15:15:35.477Z
Answers.Text: Thats not the role i was talking about, you need to go to Users >> Find cronuser user from the users list >> edit the user >> change the role to adminsitrator
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-12T16:36:34.237Z
Answers.Text: Thanks for trying to help! My wordpress user cronuser does already have the role: administrator (and keymaster).
Answers.UserDisplayName: Mich___
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-12T16:53:53.990Z
Answers.Text: I have added one more point: - only mailing scheduler gets this error log message, other tasks are successful when triggered through easycron.
Answers.UserDisplayName: Mich___
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-21T09:31:46.550Z
Answers.Text: There was a bug in 2016 and it is batched but the problem seems to be the same: https://issues.civicrm.org/jira/browse/CRM-17968
Answers.UserDisplayName: Mich___
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-12T14:51:54.063Z
Answers.LastActivityDate: 2021-09-12T14:51:54.063Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Salut.
  I am using easycron to trigger cronjobs for civicrm.</p>
  <ul>
  <li><p>url to call: <a href="https://mywebsite.de/wordpress/wp-content/plugins/civicrm/civicrm/bin/cron.php" rel="nofollow noreferrer">https://mywebsite.de/wordpress/wp-content/plugins/civicrm/civicrm/bin/cron.php</a></p>
  </li>
  <li><p>Method: post</p>
  </li>
  <li><p>name=cronuser&amp;pass=password&amp;key=key</p>
  </li>
  <li><p>cronuser exists as a wordpress user with administator priviledges.</p>
  </li>
  <li><p>cronuser exists as a civicrm user, connected to the wordpress user.</p>
  </li>
  <li><p>Additionally, cronuser is part of the civicrm group Administrators, which is used in the ACL section to grant priviledges (see images attached) to edit all contacts.</p>
  </li>
  <li><p>only mailing scheduler gets this error log message, other tasks are successful when triggered through easycron.</p>
  </li>
  <li><p>mailing scheduler works perfect when I trigger it manually, -therefore the problem has to be somewhere in the process of triggering it via url.</p>
  </li>
  </ul>
  <p>I don't understand why I still get the error message (cron log):</p>
  <p>Parameters parsed (and passed to API method):
  a:1:{s:7:&quot;version&quot;;i:3;}</p>
  <p>Full message:
  Finished execution of Mailings scheduler with result: Fehler, Error message: API permission check failed for Group/get call; insufficient permission: require access CiviCRM</p>
  <p>Can this error message NOT be related to user privileges issues, but to some other issues like firewall or folder structure priviledges? (folders leading up to cron.php including the file itself have 755 privileges).</p>
  <p>I have tried almost everything, what is there left to test?
  Thanks for any hint.
  <a href="https://i.sstatic.net/GsnMe.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GsnMe.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.sstatic.net/fUIll.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/fUIll.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.sstatic.net/dO7ap.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/dO7ap.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.sstatic.net/GChNN.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GChNN.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.sstatic.net/NjLh3.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/NjLh3.png" alt="enter image description here" /></a></p>
  
Tags: <scheduled-job>
Title: Mailing scheduler, API permission check failed; require access CiviCRM
ThreadText: # Mailing scheduler, API permission check failed; require access CiviCRM
  
  (Asked by: username_0 on 2021-09-12)
  
  Salut.
  I am using easycron to trigger cronjobs for civicrm.
  
  * url to call: <https://mywebsite.de/wordpress/wp-content/plugins/civicrm/civicrm/bin/cron.php>
  * Method: post
  * name=cronuser&pass=password&key=key
  * cronuser exists as a wordpress user with administator priviledges.
  * cronuser exists as a civicrm user, connected to the wordpress user.
  * Additionally, cronuser is part of the civicrm group Administrators, which is used in the ACL section to grant priviledges (see images attached) to edit all contacts.
  * only mailing scheduler gets this error log message, other tasks are successful when triggered through easycron.
  * mailing scheduler works perfect when I trigger it manually, -therefore the problem has to be somewhere in the process of triggering it via url.
  
  I don't understand why I still get the error message (cron log):
  
  Parameters parsed (and passed to API method):
  a:1:{s:7:"version";i:3;}
  
  Full message:
  Finished execution of Mailings scheduler with result: Fehler, Error message: API permission check failed for Group/get call; insufficient permission: require access CiviCRM
  
  Can this error message NOT be related to user privileges issues, but to some other issues like firewall or folder structure priviledges? (folders leading up to cron.php including the file itself have 755 privileges).
  
  I have tried almost everything, what is there left to test?
  Thanks for any hint.
  [![enter image description here](https://i.sstatic.net/GsnMe.png)](https://i.sstatic.net/GsnMe.png)
  
  [![enter image description here](https://i.sstatic.net/fUIll.png)](https://i.sstatic.net/fUIll.png)
  
  [![enter image description here](https://i.sstatic.net/dO7ap.png)](https://i.sstatic.net/dO7ap.png)
  
  [![enter image description here](https://i.sstatic.net/GChNN.png)](https://i.sstatic.net/GChNN.png)
  
  [![enter image description here](https://i.sstatic.net/NjLh3.png)](https://i.sstatic.net/NjLh3.png)
  
  **Tags:** scheduled-job
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2021-09-21. Score: 1 | Accepted answer
  
  Changed to cli-Method via Crontab. Since I use Mysql 8 -->
  Changed Mysql Auth Method for civicrm Mysql user:
  
  <https://dcblog.dev/mysql-80-error-the-server-requested-authentication-method-unknown-to-the-client>
  
  error: The server requested authentication method unknown to the client The solution is to change the default authentication method to mysql\_native\_password.
  
  ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql\_native\_password BY 'password';
  
  
  ---
  
  ### Answer by username_1 on 2021-09-12. Score: 0
  
  Can you make sure cronuser wordpress user has administrator permission or role. It needs most of the Civi permission to run schedule jobs.
  
  > **Comments:**
  > **username_0**: see image attached above. it has administrator role in wordpress.  what else could be the problem?  
  > **username_1**: Thats not the role i was talking about, you need to go to Users >> Find cronuser user from the users list >> edit the user >> change the role to adminsitrator  
  > **username_0**: Thanks for trying to help! My wordpress user cronuser does already have the role: administrator (and keymaster).  
  > **username_0**: I have added one more point: - only mailing scheduler gets this error log message, other tasks are successful when triggered through easycron.  
  > **username_0**: There was a bug in 2016 and it is batched but the problem seems to be the same: https://issues.civicrm.org/jira/browse/CRM-17968  
  
  ---
  
  