malteM
ZITADEL•6mo ago•
12 replies
malte

Problem using AuthorizationService API - {"code":5,"message":"Not Found"}

I am trying to use the Authorization Service API but can't get it to work.
For Authorization i am using a service User PAT. The service user has "Org User Manager" and many more memberships.
Endpoints like zitadel.cloud/v2/users/ work and return the expected data.

For /zitadel.authorization.v2beta.AuthorizationService/CreateAuthorization i only ever get '{"code":5,"message":"Not Found"}'.

Does anybody have a working Example? Is there anything to enable the beta API?

Greetings!
Malte

curl --location 'https://********.us1.zitadel.cloud/zitadel.authorization.v2beta.AuthorizationService/CreateAuthorization' \
--header 'Content-Type: application/json' \\
--header 'Authorization: Bearer ******** \
--data '{
        "userId": "*****",
        "projectId": "*****",
        "organizationId": "*****",
        "roleKeys": []
      }'
Was this page helpful?