title: How to set permissions in azure AD for spring boot api?
body: <ol>
  <li><p>How I can set custom method-level permissions in azure Ad and pass that via access token. I found it is available for roles only. Is any way to set it in azure?</p>
  <p>Spring boot Controller.</p>
  </li>
  </ol>
  <pre><code>  @GetMapping(&quot;/file1&quot;)
    @ResponseBody
    @PreAuthorize(&quot;hasAuthority('access_1')&quot;)
    fun file1(): String {
      return &quot;File read success.&quot;
    }
  </code></pre>