NinjqTuneN
ZITADEL•3w ago
NinjqTune

Issue: Session API Returns "membership not found" Error Despite Correct Permissions

Hey team! šŸ‘‹ I'm getting a membership not found (AUTHZ-cdgFk) error when trying to create sessions via POST /v2/sessions, even though my service account seems properly configured.

Setup:
  • Zitadel running in Docker (localhost:8081)
  • Service account created at Organization level
  • Service account has Org Owner role
  • Using PAT token for authentication
  • Users exist in the same organization as the service account and i double checked the password
request :

POST /v2/sessions
Authorization: Bearer {PAT_TOKEN}

{
  "checks": {
    "user": {
      "loginName": "lcanavaggio@wedigital.garden"
    },
    "password": {
      "password": "Azerty1234****"
    }
  }
}

Error :

{
  "code": 5,
  "message": "membership not found (AUTHZ-cdgFk)",
  "details": [
    {
      "@type": "type.googleapis.com/zitadel.v1.ErrorDetail",
      "id": "AUTHZ-cdgFk",
      "message": "membership not found"
    }
  ]
}


Use Case: Building a backend service that needs to validate user credentials (username + password) for login purposes. We manage our own JWT tokens after validation.
Any guidance would be much appreciated! šŸ™
Was this page helpful?