zitadel / zitadel

ZITADEL - Identity infrastructure, simplified for you.
https://zitadel.com
Apache License 2.0
8.99k stars 573 forks source link

[Bug]: creationDate field missing on user search V2 endpoint #8552

Open CiceuBogdan opened 2 months ago

CiceuBogdan commented 2 months ago

Preflight Checklist

Environment

ZITADEL Cloud

Version

v2.59.1

Database

None

Database Version

No response

Describe the problem caused by this bug

Hi. We've implemented a simple User Management page in our React App.

We are using Zitadel API to get users and display them in our React App and one of the fields that we are displaying is Creation Date.

Currently we are using the V1 User Search: https://zitadel.com/docs/apis/resources/mgmt/management-service-list-users, this endpoint returns Creation Date in result.details.creationDate field.

We wish to migrate to V2 but we are currently blocked since we can't access the Creation Date field using V2 user search: https://zitadel.com/docs/apis/resources/user_service_v2/user-service-list-users.

Thank you!

To reproduce

  1. Call V2 user search endpoint
  2. Observe the response: there is no field that correspond to user creation date

Screenshots

v1 v2

Expected behavior

User Creation Date field is available on V2 endpoints

Operating System

No response

Relevant Configuration

No response

Additional Context

Link to the post that was opened on discord: https://discord.com/channels/927474939156643850/1270266517476343810

JPepperr commented 2 months ago

Hello! If it's not urgent, could i try to do it? Could you please assign this to me? Do you have any tips, that will help me understand code and test my solution?

hifabienne commented 2 months ago

Hi @JPepperr Our contribution guidelines are a good starting point: https://github.com/zitadel/zitadel/blob/main/CONTRIBUTING.md Other than that it might be helpful to join our community chat to ask questions if you have some zitadel.com/chat

This file here is probably a good starting point, its where the function is implemented: https://github.com/zitadel/zitadel/blob/main/internal/api/grpc/user/v2/user.go

JPepperr commented 1 month ago

Hi! @hifabienne Sorry for the delay. I think i couldn't help you with this issue, i forked repo and tried to compile it, but i faced some issue with buf. I understand that they have banned all users from Russia, which is why I am receiving a 403 error message. I have tried setting up a VPN in Kazakhstan, but it has not worked either. I am really upset about this, but I don't seem to be able to do anything about it at the moment.