title: How can I create a client_credential account in to be able to perform administrative tasks?
body: <p>I'm trying to achieve the <a href="https://stackoverflow.com/a/62275885/1538384">same exact thing of this user</a> but using a client with client_credentials</p>
  <p>I've followed <a href="https://www.appsdeveloperblog.com/keycloak-client-credentials-grant-example/" rel="nofollow noreferrer">this post</a> to create my client with client credentials grant and so I can get the access token like this</p>
  <p><a href="https://i.stack.imgur.com/CllaD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CllaD.png" alt="enter image description here" /></a></p>
  <p>but when I try to call the <a href="https://www.keycloak.org/docs-api/10.0/rest-api/index.html#_executeactionsemail" rel="nofollow noreferrer">execute-action-email api</a> I only get an error 401</p>
  <p><a href="https://i.stack.imgur.com/DAfSU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DAfSU.png" alt="enter image description here" /></a></p>
  <p>what am I missing?</p>