Mattermost, Inc.

Outgoing slash commands - user_real_name?

Would be nice to receive user_real_name from outgoing slash commands, in addition to user_id and user_name.

Is this possible, without doing another rest call to look up the user?

Documentation shows following is sent for a slash command (but nothing for user real name):

channel_id=cniah6qa73bjjjan6mzn11f4ie&
channel_name=town-square&
command=/somecommand&
response_url=not+supported+yet&
team_domain=someteam&
team_id=rdc9bgriktyx9p4kowh3dmgqyc&
text=hello+world&
token=xr3j5x3p4pfk7kk6ck7b4e6ghh&
user_id=c3a4cqe3dfy6dgopqt8ai3hydh&
user_name=somename

Because since user_name is chosen by the user, it often has no relation to their formal user id in AD.

Hi @vikingsteve,

I gather you’re trying to do a look-up of the user in AD based on the receipt of an outgoing webhook? Or is the purpose of that look-up just to get the user’s real name (ex Joe Smith)?

Currently, like you said, you’d have to do another API hit to get that information. Feel free to add a feature request if this is something you’d like in the product.