nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.32k stars 4.06k forks source link

User created date #22640

Open krakazyabra opened 4 years ago

krakazyabra commented 4 years ago

How to use GitHub

Is your feature request related to a problem? Please describe. Hi! It will be nice to see in occ user:info the date and time, when user was created. For now there is only last_seen value. But sometimes there is need to know also the creation date.

Describe the solution you'd like Add to occ user:info new key with creation date and time

Describe alternatives you've considered To have this information in interface in /settings/users

EDIT:

szaimen commented 3 years ago

cc @nextcloud/server-triage is this feasible?

ghost commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

krakazyabra commented 3 years ago

/reopen

dabch commented 3 years ago

Hi, I'm also needing this functionality in the API. If there is interest from the maintainers and I could get some guidance, I'd be willing to implement this myself. Shouldn't be too complicated, right? Thanks!

szaimen commented 3 years ago

If there is interest from the maintainers and I could get some guidance, I'd be willing to implement this myself. Shouldn't be too complicated, right?

Of course, please go ahead :)

glanzel commented 2 years ago

@dabch: did it work? that would be great.

dabch commented 2 years ago

I haven't been able to spend any time on this issue and probably won't in the future. Sorry!

sorbaugh commented 1 month ago

Some thoughts discussing with the Files team:

cc @come-nc maybe you can provide more examples so we can refine the scope

cc @AndyScherzinger @marcoambrosini

sorbaugh commented 3 weeks ago

@krakazyabra @AndyScherzinger, since depending on the way users login, we might not have a "creation date" per se, what we propose to do:

Backend part

Frontned

come-nc commented 3 weeks ago

Ref for LDAP: https://datatracker.ietf.org/doc/html/rfc4512#section-3.4 (createTimestamp)

marcoambrosini commented 3 weeks ago

we can't always show the created-date for example if it is an LDAP user

Then would it make sense to just show first login for everyone instead of first created?

pierreozoux commented 2 weeks ago

Hi!

I'm following this issue in the context of developing a SCIM service provider as a Nextcloud application. (There is a link in the README to this issue :) )

SCIM, for those who don't know, is interesting in the context of using an SSO (SAML or OIdC), without ldap, to be able to sync user and group events (create, read, update, delete) from Id provider (SCIM client) (in our case keycloak), to a service provider (in our case Nc).

If you read the RFC page 17, it states that:

the attributes "id" and "meta" (and its associated sub-attributes) MUST be assigned values by the service provider.
...
meta.created:  The "DateTime" that the resource was added to the service provider.  This attribute MUST be a DateTime.

So in our case, we'd like to have the user creation date in Nextcloud registered in database somewhere. The Id provider creation date, is the responsibility of the Id provider.

Hope it helps to give context why and how this feature would be useful for us.

come-nc commented 2 weeks ago

@pierreozoux It’s unexpected to me that your application is not defining a user backend. If we add a user creation info, it will be managed by the user backend. The database backend will store it in database but other backends will fetch it elsewhere, or not provide it at all if it’s not known.