Hey so I tried creating the user.js in /src/extensions/users-permissions/server/services/user.js with my additional fields that I’m trying to get but it doesn’t respond to them. Am I missing something? There was nothing in that folder before.
I tried all the above solutions but none have worked. Nothing different happens when I call http://localhost:1337/api/users/me, I can only fetch the default fields. Apparently the code added is not called. Is there another solution?
After creating association with “User” in Strapi admin UI, you need to change “Authenticated” permission, enabling “find” of associated collection you want to shown in “/api/users/me” endpoint.
For example: I created “Restaurant” collection and associated it to “User”. Then, I needed to go to Settings → (USERS & PERMISSIONS PLUGIN) Roles → Authenticated and then enable “find” method of “Restaurant”.
After that, I needed to change endpoint to “/api/users/me?populate=restaurant”.
I hope this could help anyone had this same issue too