Metabase API: GET /api/user/ returns outdated data

When using the Metabase API to get a list of users, the data that gets returned is outdated. I noticed that newly joined users are not included in the results at all. Recently deactivated users still appear as active.

We are using self hosted Metabase currently running 0.47.0

Since we have direct access to the Metabase PostgresDB, I can confirm that the data is different to the data we get from the API request.

Atm this seems to be the only endpoint affected. api/permissions/membership for example return the correct group assignments, which are different from the group list that I get via /api/user/

Help is very much appreciated