Account is not fully set up Authentication Origin: Application & API Last updated 13 Oct 2026

Keycloak: invalid_grant — Account is not fully set up

The user has pending required actions (verify email, update password, configure OTP), so non-interactive token requests (password grant) fail.

Exact message you may see Account is not fully set upinvalid_grant Account is not fully set up
Seen on: REST API

Meaning

Required actions can only be completed in the browser login flow. Clear them for service/test users or log in interactively once.

Common causes

  • Required actions on the user (Verify Email, Update Password, Configure OTP)
  • Password grant used for a user with pending actions
  • Temporary password set by an admin

⚡ Quick fix

  1. Remove required actions in the admin console (Users → Details)
  2. Set non-temporary passwords for test/service users
  3. Use the browser flow to complete actions

Detailed fix by platform

Shell

  1. bash
    # kcadm
    /opt/keycloak/bin/kcadm.sh update users/$USER_ID -r myrealm -s 'requiredActions=[]'

How to diagnose

  1. User — Required actions list
  2. Password — Temporary?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

AADSTS50034 — AADSTS50034: The user account does not exist in the directory (Azure)AADSTS50034AADSTS50057 — AADSTS50057: The user account is disabled (Azure)AADSTS50057Authentication token manipulation error — passwd: Authentication token manipulation error (Linux)Authentication token …Failed to connect to bus — Failed to connect to bus: No such file or directory (systemctl --user / timedatectl) (Linux)Failed to connect to …Illegal arguments: undefined, string — bcrypt error: Illegal arguments: undefined, string / data and salt arguments required / data and hash arguments required (Authentication)Illegal arguments: un…Invalid parameter: redirect_uri — Keycloak: We are sorry... Invalid parameter: redirect_uri (Authentication)Invalid parameter: re…invalid_grant — OAuth 2.0 Error: invalid_grant (Authentication)invalid_grantAccount i…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.