# How to retrieve organization picture?

**URL:** <https://community.auth0.com/t/how-to-retrieve-organization-picture/69157>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [September 6, 2021, 11:49pm UTC](https://community.auth0.com/t/how-to-retrieve-organization-picture/69157 "2021-09-06T23:49:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftamez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ftamez/32/31567_2.png) [@ftamez](https://community.auth0.com/u/ftamez)\
**Post date:** [September 6, 2021, 11:49pm UTC](https://community.auth0.com/t/how-to-retrieve-organization-picture/69157/1 "2021-09-06T23:49:16Z")

</div>

Hello, guys.

```auto
  const { user, isAuthenticated, isLoading } = useAuth0();
  console.log(user)

```

This above code, shows on console the following information about my currently logged in user… for example:

```auto
{nickname: 'ftamez90', name: 'ftamez90@gmail.com', picture: 'https://s.gravatar.com/avatar/75702d21d7615970fda6…&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fft.png', updated_at: '2021-09-06T23:44:48.042Z', email: 'ftamez90@gmail.com', …}
email: "ftamez90@gmail.com"
email_verified: true
name: "ftamez90@gmail.com"
nickname: "ftamez90"
org_id: "org_ArJoLewFsXIxWWJ7"
picture: "https://s.gravatar.com/avatar/75702d21d7615970fda6c8a7705cd18d?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fft.png"
sub: "auth0|6136996f4f28ac006bd79949"
updated_at: "2021-09-06T23:44:48.

```

I see that I can get the “org\_id” which is great, but I want to know **how can I retrieve the picture of the organization of the currently logged in user?**

Please let me know, Thanks

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 7, 2021, 6:01pm UTC](https://community.auth0.com/t/how-to-retrieve-organization-picture/69157/3 "2021-09-07T18:01:40Z")

</div>

Hi @ftamez,

Welcome to the Auth0 Community!

There is not a straightforward way to get the logo URL from the org in the user profile. You can add custom data to your organization with metadata. This would be a good place to store a URL pointing to a picture for your org:

 ![Screen Shot 2021-09-07 at 10.53.15 AM](https://global.discourse-cdn.com/auth0/original/3X/f/0/f09736e843323af7b9d11bca8a53f9d4c81b037f.png)

You can then add that URL to the user object with a [custom claim in an action](https://auth0.com/docs/actions/triggers/post-login).

Organization metadata is available in actions through the `event.organization.metadata` object.

If you have any trouble, let me know. I would be happy to help you work out the details of the Action.

---

<div class="post-metadata">

**Author:** ![ftamez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ftamez/32/31567_2.png) [@ftamez](https://community.auth0.com/u/ftamez)\
**Post date:** [September 7, 2021, 9:11pm UTC](https://community.auth0.com/t/how-to-retrieve-organization-picture/69157/4 "2021-09-07T21:11:33Z")

</div>

> [@dan.woda](#):
>
> custom claim in an action

Thank you very much, let me go read and implement this idea.

Appreciate it,

FT

---

<div class="post-metadata">

**Author:** ![ftamez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ftamez/32/31567_2.png) [@ftamez](https://community.auth0.com/u/ftamez)\
**Post date:** [September 7, 2021, 9:15pm UTC](https://community.auth0.com/t/how-to-retrieve-organization-picture/69157/5 "2021-09-07T21:15:20Z")

</div>

I see the info but I dont know where I have to call this…

do you guys have a video tutorial? Explaining how this actions work?

That will be really helpfull,

### Enrich the user profile

Auth0 provides a system for storing metadata on a [User Profile](https://auth0.com/docs/users/user-profiles/normalized-user-profiles). In order to set `user_metadata` or `app_metadata` on a user’s profile during their login, use the `api.user.setUserMetadata` or `api.user.setAppMetadata` functions.

```auto
/**
 * @param {Event} event - Details about the user and the context in which they are logging in.
 * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
 */
exports.onExecutePostLogin = async (event, api) => {
  api.user.setUserMetadata("favorite_color", "blue");
};

```

---

<div class="post-metadata">

**Author:** ![ftamez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ftamez/32/31567_2.png) [@ftamez](https://community.auth0.com/u/ftamez)\
**Post date:** [September 7, 2021, 9:32pm UTC](https://community.auth0.com/t/how-to-retrieve-organization-picture/69157/6 "2021-09-07T21:32:57Z")

</div>

First I Thought it was super easy but i did everthing as the tutorial explained but still not able to see the “logo\_img”…

 ![Captura de pantalla 2021-09-07 a las 16.31.48](https://global.discourse-cdn.com/auth0/original/3X/b/f/bf7012c099a40d42d90ce38de26424e7d4182d36.jpeg)

---

<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:** [September 22, 2021, 9:33pm UTC](https://community.auth0.com/t/how-to-retrieve-organization-picture/69157/7 "2021-09-22T21:33:02Z")

</div>

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