title: Bypass Spring Security @preauthorize
body: <p>I'm calling the following method from the web layer throw a logged in user that has the attached permission:</p>
  
  <pre><code>@PreAuthorize("hasRole('list_users_permission')")
  public List&lt;UserDto&gt; getAllUsers() {
      ........
  }
  </code></pre>
  
  <p>But now I want to call it through a scheduler job, which means that I haven't a logged in user.</p>
  
  <p>Is there a way to bypass this annotation <strong>@PreAuthorize("hasRole('list_users_permission')")</strong> or to create a virtual user with all the needed permissions ?</p>