Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query for users by cid as well as user_id #895

Closed
ViddeM opened this issue Jun 22, 2024 · 3 comments
Closed

Query for users by cid as well as user_id #895

ViddeM opened this issue Jun 22, 2024 · 3 comments

Comments

@ViddeM
Copy link
Member

ViddeM commented Jun 22, 2024

Currently there is an endpoint for retrieving a user by user ID but not by cid.

This feature existed in the 'current' version of gamma and as cid is often used as an ID at the IT division it would be good if the endpoint allowed either a user ID or a cid. Alternatively these could be two different endpoints.

@Portals
Copy link
Member

Portals commented Aug 23, 2024

@Oscariremma What is your opinion on this? I guess it has to do with for example being able to run hubbit.chalmers.it/users/{cid} in an easy way.

@Oscariremma
Copy link
Member

Is it possible for a user to change their CID in Gamma? I am also guessing that you have a unique constraint on the CID in the database?

If it is "impossible" to change a CID and they are unique in the database it could be fine to allow this but it should probably be discouraged as CID:s contains some personal information in the form of name which is preferable that only Gamma stores from a GDPR point of view.

Do you remember what the usage of this would be @ViddeM ?

@Portals
Copy link
Member

Portals commented Sep 2, 2024

@Oscariremma It is not possible to change your cid in Gamma. It is also possible, in theory, that a CID is reused in the future for Chalmers. (which I do not want to think about right now 😆) It is also enforced to be unique, but that can come to change.

I think it would be most wise to close this issue unfortunately, and continue to encourage using user id.

@Portals Portals closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants