How to escape from access restricted to API-only users error message?

1.9K    Asked by ChristianParsons in Salesforce , Asked on Aug 23, 2023

 When I am trying to log in by using SSO, I am required to use two-factor authentication. But when I provide the 2fa code, I get the error that says access is restricted for API-only users. Even though it shows that I have successfully registered for two-factor authentication, I cannot access the UI. It shows that I close the window to continue. I have already confirmed that I am not an API-only user and cleared my cookies and cache; I am getting release notes describing the page. Can anyone please help me understand why I am getting this error message? 

Salesforce owns various access control methods like ‘profile,’ ‘permission set group,’ ‘permission set,’ ‘public group,’ etc. If you want to stop getting the error message that says ‘access restricted for API only users, ’ you need to uncheck the ‘API only user’ option. Even though the steps to do this can vary, if you choose the profile option, you can follow the steps:

First, choose setup. 
Then choose a quick find textbox key in Profile.
After that, choose the API-only users and select and edit the impacted Profile.


Your Answer

Answer (1)

The "Access restricted to API-only users" error message typically indicates that the operation you're attempting to perform requires API access, but you're currently logged in with a user account that doesn't have the necessary permissions.


To resolve this issue, you can try the following steps:

Check Permissions: Ensure that the user account you're using has the appropriate permissions to access the API. Depending on the service or platform you're working with, this may involve adjusting settings or permissions within the user account settings.

Use API Credentials: If you're accessing an API, make sure you're using the correct API credentials (such as an API key or access token) in your request. These credentials are often required to authenticate and authorize access to the API.

Review API Documentation: Consult the documentation or developer resources for the API you're trying to access. Look for information about authentication and authorization requirements, as well as any specific instructions or limitations for accessing the API.

Contact Support: If you're still unable to resolve the issue, consider reaching out to the support team or developer community associated with the API or platform you're working with. They may be able to provide assistance or guidance to help you troubleshoot the problem.

Verify Endpoint: Double-check the endpoint URL and ensure that you're making requests to the correct API endpoint. Using an incorrect or outdated endpoint may result in authentication errors.

6 Months

Interviews

Parent Categories