slack user-id

0

I have created a bot and integrated with slack following the instructions. The bot works as expected and posts to a lambda for fulfilment.

In the lambda i see as part of the request:'x-amz-lex:user-id' which i expect to be the slack user id but its not in the normal slack format of something like UXXXXXX but is a long int such as 'x-amz-lex:user-id': '396498713242.12.691123599936'. How do i translate this to the real slack userid so i can look up the profile for that user?

thanks

Andrew

AMC777
demandé il y a 5 ans394 vues
1 réponse
0

My mistake i was looking at the x-amz-lex:user-id and the user-id field

thanks

Andrew

AMC777
répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions