Unable to use v2 api using a PAT
Hey there,
I am using the go-sdk and a generated PAT (of a service user) and I am trying to use certain v2 apis such as AuthorizationService.ListAuthorizations.
However I always get
rpc error: code = Unimplemented desc = unknown service zitadel.authorization.v2beta.AuthorizationService as an error.
The service user has the Iam Owner role (set trough /ui/console/instance/members)
v1 apis tend to work without issue.
What I am missing?
Zitadel is running v3.4.4 and the go-sdk is v3.13.01 Reply
Hi @TobiWan, I'm an AI assistant for ZITADEL. While a team member reviews this question, I'll see if I can find relevant sources for your question.
Answer
I wasn't able to find a direct answer, here are some relevant sources:
1. [rpc error: code = Unimplemented desc = unknown service zitadel.user.v2.UserService][(9) ]:
Shows a similar error when calling a v2 service using the go-sdk, which may indicate the service is not available or enabled in your ZITADEL deployment.
2. [Problem using AuthorizationService API - {"code":5,"message":"Not Found"}][(6) ]:
Discusses issues with the AuthorizationService API not being available in certain ZITADEL versions or environments, and that some APIs might only be available in newer releases.
Feel free to tag @Ask Inkeep with additional questions.
Got it. Tagging @Rajat for additional help.