Add user entity access and login time to JSON:API

Created on 17 October 2023, 8 months ago

Problem/Motivation

I want to get access to the access or login time to fetch a custom entity, which I then display to the user as new (since last login or similar).

Steps to reproduce

Just request /jsonapi/user/user/uuid and see that only "created" and "changed" is returned, but not the timestamps of "login" und "access" which are also available in the users_field_data database table (and I guess are updated via some Drupal subsystem hooks/events)

Proposed resolution

just add them to the list of fields returned.

Remaining tasks

Someone has to add them from the core team or tell why these available data is ommitted.

User interface changes

none

API changes

none

Data model changes

none

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
JSON APIΒ  β†’

Last updated 1 day ago

Created by

πŸ‡©πŸ‡ͺGermany ro-no-lo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024