Send private messages with add-on

Hi!

 

Is there any way add-on can send private message to user (containing sensitive or private data, for example)?

Thanks!

1 answer

1 accepted

1 vote
Accepted answer

Hi Michael,

You can send a message on users behalf – a user can authorize your add-on via 3LO Auth. You can also create a dedicated user for your add-on and have that user to send direct messages.

I tired to do as follows.

 

When add-on installed, programmatically (POST /v2/user) create a "bot" user and add him to group. But then, how can I obtain (programmatically) access token to send messages on this bot's behalf? I can't figure out if this even possible. I think it's not.

Hi Mikhail, it is possible.

When you create the 'bot' user set its username and password and then you can generate token using the 'password' grant: https://www.hipchat.com/docs/apiv2/method/generate_token .

Yes, looks like solution. Thank you so much!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

32,482 views 7 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you