Hello Earala, Prasad!
Thanks for your quick response!
For such error: {"error":"invalid_grant","error_description":"no client credentials user enabled"}
Could you please try the following steps in order to resolve this issue.
- Make sure “Client Credentials Flow” is turned on
- This setting must be enabled in your Connected App configuration.
- This setting must be enabled in your Connected App configuration.
- Click the “Manage” button on the Connected App
- This opens the settings for the app.
- Go to “Edit Policies”
- This is where you can adjust access and security settings.
- Find the “Client Credentials Flow” section
- Here, you’ll see an option called “Run As”.
- Choose a user for the “Run As” option
- Select a user account that has API Only access enabled.
- This user will be used to authenticate API calls made through the client credentials flow.
- Don’t update the old or existing used Connected App. Create a new one.
- Make sure Consumer Key and Consumer Secret values are correct for the client_id and client_secret keys.
Please let me know if this works for you. Please "Accept as Answer" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.
Thanks and Happy to Help!
Pratyush