It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Answer accepted
Anatoli Atlassian Team May 12, 2016

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.

Anatoli Atlassian Team May 18, 2016

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
TAGS
Community showcase
Published in Hipchat

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 ...

35,184 views 9 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you