You granted Use Any API Auth. Now what?

From 1 December, Salesforce says SOAP login() "succeeds only if the user has Use Any API Auth user permission assigned. Without it, the request fails." If you've already assigned that permission to keep an integration signing in, you've bought time. You haven't fixed anything. Here's how to finish the job.

1. Find the integration that still uses login()

Salesforce: "Use Login History to identify applications that make SOAP API login() calls."

Logs show you the user, not the code. The script or tool that sends that username and password is still somewhere in a repository, a scheduler or a vendor's settings page. Find it now, because you'll change it in step 2.

2. Move it to an External Client App and OAuth

Salesforce's article: "Preferred: migrate to ECA + OAuth." For an integration with no person at the keyboard: "For server-to-server or headless integration, use either the OAuth 2.0 JWT bearer flow". The article also lists client credentials. For anything a person signs in to: "use the OAuth 2.0 web server flow."

With client credentials, the app signs in as a chosen user. Salesforce's own description: "Think of this as the 'integration user' pattern." The user you found in step 1 is the natural choice, but give it only the access the integration needs.

Then change the code or tool settings from step 1 to use the new app, and run it in a sandbox first.

3. Take the permission back

Salesforce ties the permission to login() alone. Its developer reference says: "Use of login() is restricted with Use Any API Auth user permission." The article says to assign it to users that need SOAP login() "while the operation is in service."

Once Login History shows no more SOAP login() rows for that user, remove the permission. Salesforce doesn't say to remove it. This is our advice: a permission that only exists to allow password sign-in shouldn't outlive the password sign-in.

4. Why not just keep the stopgap?

There are two reasons.

Want this as a printable checklist? Download the Salesforce SOAP login() retirement checklist (free PDF, 10 pages).

If you'd like a second pair of eyes, Portwell runs a free, read-only exposure check. It finds Salesforce SOAP login() sign-ins in one repository and shows each one with its file and line. It doesn't check your org settings, config stores or integration-tool connections, so the steps above still apply. Ask for a free check

Sources