How to find the code behind the login() rows and finish the move (for Salesforce admins)
You see the SOAP login() rows in Login History. Your developer owns the code that sends them. This guide splits the work between you, so the integration moves to OAuth and you can take the Use Any API Auth permission back.
Before you start
- Access to Setup in your sandbox and production orgs.
- The name of whoever owns the integration code, or a way to reach them.
- Nothing for us. We never need your Salesforce login.
Your part, first
- Find the integration users. In Login History, filter Login Subtype to "SOAP API". Note the username on each row. That's your integration user.
- Send your developer to the free check. Login History shows the user, not the code. The free check reads their repository and lists every place it calls login(), with file and line. For each call it says where the username comes from, such as an environment variable's name, so you can match it to the users from step 1. The report never prints a username or password written in the code.
When the change arrives
If your team goes on to a proposed change, its package includes ADMIN_SETUP.md. That file is for you: the sign-in users the change touches, and the steps below in order. It holds no code, passwords or tokens, so your developer can forward it as it is.
- Create an External Client App for the integration, using OAuth (JWT bearer or client credentials).
- Give the integration user a permission set with only the access the integration needs.
- Do both in your sandbox first, then production, before the code change is deployed. Keep the old sign-in working until the new one passes.
- Tell your developer when an org is ready, so they can merge and deploy the change. Our guide to reviewing and signing off a change marks which steps are yours.
After the new sign-in works
Once Login History shows no more SOAP login() rows for that user, take Use Any API Auth back from it and revoke its password and security token. Salesforce doesn't say to remove the permission. This is our advice: a permission that only exists to allow password sign-in shouldn't outlive the password sign-in.
Read more
- You granted Use Any API Auth. Now what?
- The Salesforce SOAP login() retirement checklist (10 pages)
- Portwell for Salesforce admins
Checked against Portwell on main (admin section and ADMIN_SETUP.md) on 28 November 2026.