I am configuring integration between xmpp and mattermost using matterbridge and I would like to be able to set the IconURL to the profile image of the user in mattermost. As I understand, the API should be like this:
https://mattermost.example.com/api/v4/users/GUID/image but matterbridge does not recognize GUID, it only recognizes NICK, which is the username for both xmpp and mattermost, so is there a way to query the profile image using the username and not guid? Something like this?
Thanks in advance,
There’s no API to get the image using the username but there is Get a user by username that can be used to get the GUID if you need it.
You can see the whole API documentation here
Thank you for your reply. Yes I saw that API as well and from there figure out the GUID of the user but I’m afraid matterbridge cannot programatically do that. Anyway, thanks again.