Salesforce ends the OAuth username-password flow on 20 February 2027

Salesforce blocks the OAuth 2.0 username-password flow for connected apps on 20 February 2027. An integration that creates, disables or updates Salesforce users from the HR system and signs in with a username and password gets no access token after that date and stops.

Salesforce says so in the Help article Security Change: Retirement of the OAuth 2.0 Username-Password Flow by February 20, 2027. The change was first planned for Winter '27; Salesforce moved the date to 20 February 2027. In addition, the SOAP login() call in API versions 31.0 through 64.0 retires in Summer '27, Salesforce writes in the Summer '26 Release Architect Highlights of 8 June 2026.

Why this affects HR

In Salesforce user management, an integration creates a user on the start date, with profile, role and licence. On departure the integration sets the user to inactive, so the licence is freed. Many older integrations and scripts sign in with an integration user's username, password and security token. If that stops, HR notices nothing. But leavers keep access to customer data and licences keep running.

What exactly changes

  • No new tokens. After 20 February 2027, connected apps that use the username-password flow no longer get an access token. That applies to custom integrations and to apps from managed packages. You cannot request an exception or switch the flow back on.
  • New orgs already blocked. Orgs created from Summer '26 onwards cannot use the flow already. If you do not see the release update in your org, the flow is already off and this change does not affect you.
  • Replacements. For server-to-server integrations Salesforce recommends the OAuth 2.0 client credentials flow. Where a user signs in personally, the web server flow with PKCE.
  • SOAP login() separately. The login() call with username and password in the SOAP API retires in Summer '27 for versions 31.0 through 64.0. Salesforce recommends the REST API with OAuth.

What to do before 20 February 2027

  1. Find which integrations use the flow. In Setup, open Login History, show the Login Subtype column and look for OAuth Username-Password. After the block, failed attempts show with the status OAuth Username-Password Flow Disabled.
  2. In Setup, check Release Updates for Retirement of OAuth 2.0 Username-Password Flow for Connected Apps. That is where you test and activate the change before the deadline.
  3. Move every integration that manages users to the client credentials flow. Give the integration user only the permissions it needs to manage users.
  4. Check whether the same integration also uses login() in the SOAP API. Move that to REST with OAuth before Summer '27.
  5. Test the whole chain once: create a test employee in the HR system, check that the user appears in Salesforce, then set an end date.

Activate the release update in a sandbox first. Then you see which integration stops before the production org does.

How KoppelHet builds this

KoppelHet builds user management in Salesforce from the HR system or Entra ID. New integrations sign in with OAuth, without a user's password. If one of our existing integrations still runs on the username-password flow, we move it with your Salesforce admin and test in a sandbox. We build this from, among others, AFAS to Salesforce, Youforce to Salesforce, Nmbrs to Salesforce and Workday to Salesforce.

Read more on the hub for Salesforce, about CRM users and licences or about cleaning up CRM licences of leavers.

Which systems do you want to connect?

Tell us which systems you use and what should happen automatically. Together we define the smallest working solution, with a clear design and a quote before building.