Skip to main content

Switch account

Last updated on

If you belong to more than one Harness account, you may need to switch between accounts to manage resources or configure settings in a different account. Instead of signing out and back in, you can switch between accounts directly from the Harness UI. If the target account uses a different authentication method, Harness asks you to re-authenticate to keep access secure.


What will you learn in this topic?

By the end of this topic, you will know how to:

  • View which Harness accounts you belong to.
  • Switch between accounts and set a default account.
  • Determine whether switching requires re-authentication based on the authentication settings of each account.

Before you begin

Before you switch accounts, ensure you have the following:

  • You belong to at least two Harness accounts. If you only have one account, the Switch Account option does not appear.
  • You know how each account is set up for authentication (for example, username and password, OAuth, SAML, or LDAP). The authentication method determines whether re-authentication is required when you switch accounts.

View and switch accounts

To view and switch between accounts:

  1. Select your User Profile icon in the bottom-left corner of the Harness UI. The page with basic information appears.

    You can also go to Account Settings -> Account Details to switch between accounts.

    User profile menu showing the Switch Account option
  2. Select Switch Account. Harness displays all the accounts you are a member of.

    Switch Account dialog listing all accounts the user belongs to
  3. Select the account you want to switch to. Click Switch.

  4. To set a specific account as your default, select Set as Default next to the account name. Click Continue.


Re-authentication use cases

When you switch accounts, Harness checks the authentication method configured on the target account. If the target account uses a different authentication method or provider than your current account, Harness prompts you to re-authenticate.

The following table summarizes the behavior for each authentication method:

Current account methodTarget account methodRe-authentication required?
Username and PasswordAny other methodYes
Username and PasswordUsername and PasswordYes
Username and Password + OAuthAny methodYes
OAuth (specific providers)Same OAuth provider setNo
OAuth (specific providers)Different OAuth provider setYes
SAML (specific SSO config)Same SAML SSO configNo
SAML (specific SSO config)Different SAML SSO configYes
LDAP (specific config)Same LDAP configNo
LDAP (specific config)Different LDAP configYes
Whitelisted domainsWhitelisted domainsNo
Whitelisted domainsAny other methodYes
2FA at Account scope + OAuth2FA at Account scope + OAuthNo
2FA at Account scope + OAuthAny other methodYes