# Get profile of other user client side

**URL:** <https://community.auth0.com/t/get-profile-of-other-user-client-side/98662>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [January 22, 2023, 6:44pm UTC](https://community.auth0.com/t/get-profile-of-other-user-client-side/98662 "2023-01-22T18:44:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thijsfranck](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thijsfranck/32/42892_2.png) [@thijsfranck](https://community.auth0.com/u/thijsfranck)\
**Post date:** [January 22, 2023, 6:44pm UTC](https://community.auth0.com/t/get-profile-of-other-user-client-side/98662/1 "2023-01-22T18:44:39Z")

</div>

Hi everyone,

To learn some new technologies, I am building a small chat application that allows users to send messages to each other. I have set up my app with auth0 for client authentication and user management. My chat messages include the `sub` of a user as the unique `author_id`.

Now, for my use case, I would like everyone who has received a message to pull up a small user profile card for the message author. This means querying the user management system with the `author_id` to retrieve the user profile.

I have found [the get users by id endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-by-id-endpoint) which seems to fit my needs. The problem here is that this API requires a management API token, which will not be available on the client side.

Should I set up a pass-through API which authorizes users based on their app JWT token? Or should I be looking at a different approach (the fact that this API requires a management token seems to suggest so)?

Thanks a bunch for your help!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 25, 2023, 12:31am UTC](https://community.auth0.com/t/get-profile-of-other-user-client-side/98662/3 "2023-01-25T00:31:31Z")

</div>

Hi there @thijsfranck welcome to the community!

> [@thijsfranck](#):
>
> Should I set up a pass-through API which authorizes users based on their app JWT token? Or should I be looking at a different approach (the fact that this API requires a management token seems to suggest so)?

You’re correct in that the `/users` endpoint requires a management API token - Typically, this type of request is proxied through a backend that _can_ management client credentials safely. The following FAQ is along the lines of what proxying through a backend will look like:

[https://community.auth0.com/t/how-can-i-enable-users-to-change-their-email-address-from-a-spa-or-native-app/44064](https://community.auth0.com/t/how-can-i-enable-users-to-change-their-email-address-from-a-spa-or-native-app/44064)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 8, 2023, 12:32am UTC](https://community.auth0.com/t/get-profile-of-other-user-client-side/98662/4 "2023-02-08T00:32:00Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
