Tag: salesforce-admin

  • Username-Password Flow Retirement: Find Your Integrations Before They Break

    Hey folks, Abhi here!

    Quick one today, but it’s important. On February 20, 2027, Salesforce enforces the retirement of the OAuth 2.0 username-password flow for Connected Apps. Any integration still logging in with a username, password and security token will simply stop authenticating. No warning banner, no grace period. Just failed syncs and a very confused middleware team.

    Salesforce first announced this in Spring ’26 and planned to enforce it in Winter ’27, then pushed enforcement to Feb 20, 2027, around the Spring ’27 release. That delay is a gift. Don’t waste it.

    In this post I’ll walk you through how to find every integration in your org that’s still on this flow, how to pick the right replacement, and a checklist to migrate without breaking production. Let’s get into it.

    What’s actually being retired?

    The username-password flow (you’ll also see it called ROPC, Resource Owner Password Credentials, or “password grant”) lets an external system log in to Salesforce by sending a real user’s credentials straight to the token endpoint. Typically the integration stores:

    • Client ID (consumer key)
    • Client secret (consumer secret)
    • A Salesforce username
    • A password plus security token

    The problem is obvious once you say it out loud: a human-style password is sitting in a config file somewhere. If it leaks, someone has a working login. If the integration user’s password expires or gets reset, the integration breaks. And from Salesforce’s side, it’s hard to tell “a system calling the API” apart from “a person logging in.”

    So Salesforce is closing the door. A few things worth knowing:

    • External Client Apps (ECAs) don’t support the username-password flow at all. You can’t just “move it to an ECA” and keep the same login style.
    • Orgs created in Summer ’26 and later already block this flow by default.
    • This is a breaking change, not a deprecation notice. After enforcement, affected logins fail.

    Step 1: Check the release update in Setup

    Start here. It takes 30 seconds.

    1. Go to Setup and type Release Updates in Quick Find.
    2. Look for Retirement of OAuth 2.0 Username-Password Flow for Connected Apps.
    3. Open it and read the testing and activation steps.

    If you don’t see the release update, your org already blocks the flow. You’re likely in the clear, though it’s still worth a quick look at Step 3 for anything odd.

    If you do see it, keep going. Don’t hit activate yet. First, find out who’s going to break.

    Step 2: Find the logins that use the flow

    Every login records a Login Subtype. The one you’re hunting for is OAuth Username-Password. Here are three ways to find it, from easiest to most thorough.

    Option A: Login History download (any admin)

    1. Go to Setup → Login History.
    2. Download the CSV. It covers roughly the last six months.
    3. Open it in Excel or Google Sheets and filter the Login Subtype column to OAuth Username-Password.
    4. Pivot by Username and Application to see which integration users and connected apps show up, and how often.

    Option B: SOQL (if you like queries)

    You need Manage Users or Monitor Login History to read LoginHistory. Something like this pulls the raw rows:

    SELECT UserId, LoginTime, Application, LoginType, LoginSubType, ApiType, Status
    FROM LoginHistory
    WHERE LoginTime = LAST_N_DAYS:180
    ORDER BY LoginTime DESC

    Then filter for the username-password subtype in your results. In big orgs this can be a lot of rows, so narrow the date range if you hit limits.

    Option C: Event Monitoring (if you have Shield or the add-on)

    The Login event log file marks this flow as oauthpassword in the login sub-type field. Event logs give you more detail and longer retention, which helps catch rare integrations.

    Watch out for quiet integrations. A job that runs quarterly or yearly might not show up in six months of history. That’s why Step 3 matters.

    Step 3: Check the other side of the integration

    Login History tells you who logs in. It doesn’t tell you where the credentials live. For that, go to the systems calling Salesforce:

    • Middleware (MuleSoft, Boomi, Workato, Azure Logic Apps and so on): open each Salesforce connection and check the auth type.
    • Custom scripts and apps: search the repos and config files for grant_type=password, “password grant”, or a stored security token.
    • Managed third-party tools: lots of vendors have already posted notices about this retirement, including NetSuite, Genesys, Boomi, SailPoint and Acumatica. If a vendor owns the auth code, ask them straight out: “Does your app use the Salesforce OAuth username-password flow, and when will you support Client Credentials or JWT?”

    Build one list as you go: integration name, integration user, connected app, owner, and how often it runs. That list becomes your migration plan.

    Step 4: Pick the right replacement flow

    For most admin-owned integrations, the answer is Client Credentials on an External Client App. But it depends on how the integration works:

    If the integration…UseWhy
    Is system-to-system with no user involved (middleware, ETL, BI scripts)Client CredentialsSalesforce’s standard for server-to-server. It runs as one integration user you choose, with no password stored anywhere.
    Is server-side but must act as a specific user, or your security team wants certificatesJWT BearerIt’s signed with a private key, and Salesforce checks the certificate you upload. No secret password is involved.
    Has a real person logging in through a web or mobile appWeb Server (Authorization Code), with PKCE where supportedThe user signs in on Salesforce’s own login page, and the app never sees their password.

    Salesforce has also stopped letting you create new Connected Apps, so build the replacement as an External Client App. You’ll find it under Setup → External Client App Manager.

    One tip from moving integrations to Client Credentials myself: set up a dedicated integration user with the Salesforce Integration license, and give it access only through a permission set. Don’t reuse the old shared login. You get a cleaner audit trail, and you can see exactly what each integration can touch.

    Step 5: Migrate without breaking production

    Work through your list one integration at a time. Here’s the checklist I’d use for each one:

    • Create the External Client App and turn on the right flow (Client Credentials or JWT Bearer).
    • For Client Credentials, set the run-as user to your dedicated integration user.
    • Give that user a permission set with only the objects and fields the integration needs.
    • Update the middleware or script to use the new client ID, secret or certificate, and the right token endpoint (your My Domain URL).
    • Test end to end in a sandbox first: run a full sync and compare the record counts.
    • Deploy to production during a quiet window, and keep the old config handy for rollback.
    • Watch Login History for a few days. New logins should show the new subtype, such as OAuth Client Credentials.
    • Once nothing uses the old login, remove the old connected app’s access and rotate or retire the old password.

    When the whole list is done, go back to Release Updates and test the retirement update in a sandbox. Then activate it in production yourself, before Salesforce does it for you on Feb 20. If something you missed breaks, it breaks on your schedule, not theirs.

    Wrapping up

    Here’s the short version:

    1. Check Release Updates to see if your org is affected.
    2. Find every OAuth Username-Password login in Login History or your event logs.
    3. Check middleware, scripts and vendors for stored passwords.
    4. Move server-to-server jobs to Client Credentials and user-context ones to JWT Bearer, both on an External Client App.
    5. Test in a sandbox, migrate one integration at a time, then activate the release update before Feb 20, 2027.

    If you only have a handful of integrations, the Login History download is all you need. With lots of integrations and users, the SOQL or Event Monitoring route will save you a lot of spreadsheet time.

    Got an integration you’re not sure how to migrate? Drop it in the comments and I’ll help you figure out which flow fits.

    See you in the next one!

    Sources