title: How can create a user in ArgoCD with apiKey access only?
body: <p>I have a shell script in a container, that needs to access the ArgoCD API.
  The script asks the API for a token, and then uses this token to restart a deployment.</p>
  <pre class="lang-sh prettyprint-override"><code>JSON=$(jq -c -n --arg username &quot;$USER_NAME&quot; --arg password &quot;$PASSWORD&quot; '$ARGS.named')
  TOKEN=$(curl -k $ARGOCD_SERVER/api/v1/session -d &quot;$JSON&quot; | jq -r &quot;.token&quot;)
  
  PARAMETERS=&quot;namespace=$NAMESPACE&amp;resourceName=$RESOURCE_NAME&amp;kind=Deployment&amp;group=apps&amp;version=v1&quot;
  curl -k -H &quot;Authorization: Bearer $TOKEN&quot; \
          -d &quot;\&quot;restart\&quot;&quot; \
          &quot;$ARGOCD_SERVER/api/v1/applications/argocd/resource/actions?$PARAMETERS&quot;
  </code></pre>
  <p>This only seems to work when I have the <code>login</code> option enabled in my <code>argo-cd-cm.yaml</code> enabled.</p>
  <pre><code>...
  data:
    admin.enabled: &quot;false&quot;
    accounts.&lt;service-user&gt;: apiKey, login
    accounts.&lt;service-user&gt;.enabled: &quot;true&quot;
  ...
  </code></pre>
  <p>As I am using OIDC for regular users, I would not like this login option to be disabled.</p>
  <p>Is there a way to specify an <code>apiKey</code> for a given user in the one of the configmaps?</p>