Getting the mentioned User GID through Story API

I’m using Asana’s Story and User APIs. Story mentions return text like: “Hi 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?

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.

1 Like

@Phil_Seeman Thank you Sir! This helped me!

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