clarin-dspace icon indicating copy to clipboard operation
clarin-dspace copied to clipboard

Show last active / last login date in /access-control/epeople

Open kosarko opened this issue 6 months ago • 2 comments

kosarko avatar Jun 27 '25 15:06 kosarko

This is purely a UI issue.

REST Request provides lastActive information:

Sample:

GET /server/api/eperson/epersons
response:
{
    "_embedded": {
        "epersons": [
            {
                "id": "602e7e5e-dc8e-49c4-acd3-ccad03e68cfb",
                "uuid": "602e7e5e-dc8e-49c4-acd3-ccad03e68cfb",
                "name": "[email protected]",
                "handle": null,
                "metadata": {
                      ...
                },
                "netid": "https://someother/idp/shibboleth!https://sp.idptestbed/shibboleth!rITEE1QiEAUsS09ycQFRqZNeSpU=[https://someother/idp/shibboleth]",
                "lastActive": "2025-07-10T12:39:26.686+00:00",
                "canLogIn": false,
                "email": "[email protected]",
                "requireCertificate": false,
                "selfRegistered": false,
                "welcomeInfo": null,
                "canEditSubmissionMetadata": null,
                "type": "eperson",
                "_links": {
                    "groups": {
                        "href": "http://localhost:8080/server/api/eperson/epersons/602e7e5e-dc8e-49c4-acd3-ccad03e68cfb/groups"
                    },
                    "self": {
                        "href": "http://localhost:8080/server/api/eperson/epersons/602e7e5e-dc8e-49c4-acd3-ccad03e68cfb"
                    }
                }
            },
            ...

kuchtiak-ufal avatar Jul 28 '25 09:07 kuchtiak-ufal

This is a Pull Request for the fix (in dspace-angular repository): https://github.com/ufal/dspace-angular/pull/41

Image

kuchtiak-ufal avatar Jul 28 '25 10:07 kuchtiak-ufal