Convert Slack User ID to username

Hello, I’m trying to send Slack channels messages to a Google Sheet.
The Slack API sends me User ID from channels:history scope but I don’t know how to convert it to actual username.
JSON looks like :
{ “upload”: true,
“user”: “UHJUSR***”,}

Can you help me?
Thanks!

Hey @A_Cort,

I can’t remember if you can just use the id in the post option I will check later but for now what you could do is the slack node to get the user by id and that will give you the username.

1 Like

Welcome to the community @A_Cort

As @Jon mentioned, you need to use another slack node (operation user:info) that references the User ID using expressions and returns the user’s full information.

1 Like

Ok thank you guys!

1 Like