# Getting the mentioned User GID through Story API

**URL:** <https://forum.asana.com/t/getting-the-mentioned-user-gid-through-story-api/1019328>\
**Category:** Ask the Community\
**Tags:** activity-feed, users, tasks\
**Created:** [28 January 2025 18:00 UTC](https://forum.asana.com/t/getting-the-mentioned-user-gid-through-story-api/1019328 "2025-01-28T18:00:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riddhiman\_Sherlekar](https://luna1.co/8d76cd.png) [@Riddhiman\_Sherlekar](https://forum.asana.com/u/Riddhiman_Sherlekar)\
**Post date:** [28 January 2025 18:00 UTC](https://forum.asana.com/t/getting-the-mentioned-user-gid-through-story-api/1019328/1 "2025-01-28T18:00:52Z")

</div>

I’m using Asana’s Story and User APIs. Story mentions return text like: “Hi [https://app.asana.com/0/profile/8931120387404](https://app.asana.com/0/profile/8931120387404) - I have created…”. I want to replace the URL with the mentioned user’s name. Using the User API, lookups with `user_gid` fail to find the user represented by `8931120387404` in the URL, even though that URL successfully opens the user’s profile in Asana.

What is this `8931120387404` ID if it’s not a `user_gid`? How can I use it to retrieve the user’s name and email?

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [28 January 2025 23:26 UTC](https://forum.asana.com/t/getting-the-mentioned-user-gid-through-story-api/1019328/2 "2025-01-28T23:26:45Z")

</div>

Hi @Riddhiman_Sherlekar,

If you get the contents of the `html_text` field in the Story object, the User’s `gid` will be in there. See [this forum post for more](https://forum.asana.com/t/how-to-match-user-id-and-profile-id/1013042/2).

---

<div class="post-metadata">

**Author:** ![Riddhiman\_Sherlekar](https://luna1.co/8d76cd.png) [@Riddhiman\_Sherlekar](https://forum.asana.com/u/Riddhiman_Sherlekar)\
**Post date:** [29 January 2025 02:46 UTC](https://forum.asana.com/t/getting-the-mentioned-user-gid-through-story-api/1019328/3 "2025-01-29T02:46:33Z")

</div>

@Phil_Seeman Thank you Sir! This helped me!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [5 February 2025 02:47 UTC](https://forum.asana.com/t/getting-the-mentioned-user-gid-through-story-api/1019328/4 "2025-02-05T02:47:18Z")

</div>

Closed on 5 February 2025 02:47 UTC

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