REST API endpoint returns incorrect data

Summary

When querying the user details via the API with the endpoint "/api/user/{id}/details", the JSON array "regions" and "groups" are filled with the data of the querying account (ambassador).

Steps to reproduce

What is the current bug behavior?

What is the expected correct behavior?

The "regions" and "groups" should be filled with the data of the queried user.

Relevant error messages and/or screenshots

Possible fixes