sp132
sp132•15mo ago

User's object.Details is nil

I'm trying to set some user metadata for a user belonging to another organization and before I can do that I need to set OrgID via middleware middleware.SetOrgID(ctx, u.GetDetails().GetResourceOwner()). The problem is that users returned by ListUsers grpc have their object.Details set to nil. Is this a known bug? Is there a workaround?
No description
9 Replies
fabienne
fabienne•15mo ago
@stebenz or @Elio might be able to help
stebenz
stebenz•15mo ago
@sp132 Which ListUsers call do you use here?
sp132
sp132OP•15mo ago
v2beta.UserService
stebenz
stebenz•15mo ago
Hm, are you working with a self-hosted instance? If so what verison do you use? I just now tested it with the current version and for me the dtailes are filled with the resourceowner
stebenz
stebenz•15mo ago
GitHub
fix: add details to ListUsers for user results by stebenz · Pull Re...
Which Problems Are Solved In User v2 API, the ListUsers endpoint doesn't provide the information to which organization the user belongs to. How the Problems Are Solved Add the details to th...
sp132
sp132OP•15mo ago
Right, this is a self-hosted instance, running 2.54.8 Yeah it looks exactly as the problem described in the PR. I don't see a version where it was fixed though, usually there is a helpful message? 🙂
stebenz
stebenz•15mo ago
GitHub
Release v2.57.0 · zitadel/zitadel
2.57.0 (2024-07-24) Bug Fixes add details to ListUsers for user results (#8255) (fb2d454), closes #8172 add missing totp remove endpoint in user v2 API (#8256) (19a8ab0), closes #6605 add OrgIDQue...
sp132
sp132OP•15mo ago
oh... thank you, good to know it's already fixed, time to upgrade 🙂
stebenz
stebenz•15mo ago
No worries, happy to help

Did you find this page helpful?