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."
- In Login History, filter Login Type to "Other Apex API" or "Partner Product", with Login Subtype "SOAP API".
- Note the username on each row. That's your integration user.
- For a second view, Salesforce also points to the API Total Usage event log: "Review all the API Total Usage events that have an empty CONNECTED_APP_ID field". Without Event Monitoring, Salesforce keeps that log for 24 hours.
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.
- It has an end date. Salesforce is retiring login() in API versions 31.0 to 64.0 in Summer '27, and two more steps come first: 15 December in sandboxes and 31 January in production.
- It holds you on an old API version. Salesforce: "SOAP API login() isn't available in API versions 65.0 and later." So code that still calls login() can't move to a newer API version. One connector vendor hit exactly this. Their own issue says the old login "also blocks bumping the connector to v65.0+."
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
- Salesforce knowledge article 005132110, "Platform SOAP API login() Retirement & new Security Requirements" (Publish Date Oct 19, 2026; read 24 Nov 2026): https://help.salesforce.com/s/articleView?id=005132110&type=1
- Salesforce SOAP API developer guide, login() (read 24 Nov 2026): https://developer.salesforce.com/docs/platform/api/guide/sforce-api-calls-login.html
- Salesforce Developers blog, "Using the Client Credentials Flow for Easier API Authentication" (28 Mar 2023; read 24 Nov 2026): https://developer.salesforce.com/blogs/2023/03/using-the-client-credentials-flow-for-easier-api-authentication
- Estuary connectors issue #5708 (opened 6 Nov 2026; read 24 Nov 2026): https://github.com/estuary/connectors/issues/5708