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
preguntada hace 5 años394 visualizaciones
1 Respuesta
0

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

thanks

Andrew

AMC777
respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas