Getting this error when trying to run a curl following the OAuth 2.0 Client Credentials Flow for Server-to_Server integration:
{"error":"invalid_grant","error_description":"no client credentials user enabled"}
The curl (redacted info for CONSUMER_SECRET, CONSUMER_KEY and DOMAIN):
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=CONSUMER_KEY&client_secret=CONSUMER_SECRET" \
"https://DOMAIN.my.salesforce.com/services/oauth2/token"
The target tenant is running Salesforce Enterprise Edition. My Managed Package with my App is installed and runs as a user with the System Administrator Profile. I have the correct Consumer Key and Consumer Secret for the App and got DOMAIN from Setup -> My Domain in the target tenant.
The documentation states, "This flow eliminates the need for explicit user interaction, though it does require you to specify an execution user to run the integration."
Any thoughts as to why the initial request is failing?