Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Notify user when adding to a group

Tamari Janelidze July 1, 2019

Hello, 

How can I notify a user automatically when I add her/him into a group.   So far, when I create a new group and add users, they don't get any notification about it.    

1 answer

0 votes
Thomas Deiler
Community Champion
July 29, 2019

Dear @Tamari Janelidze ,

I have a solution, but it is a bit tricky:

  • Add our users to the groups as usual.
  • Write a cron job, that polls the "Audit Log" via REST API every lets say 10 minutes
  • GET /rest/api/2/auditing/record
  • Limit the search  with "from" and "to"
  • check for group modifications
  • fetch users email address by GET /rest/api/2/user
  • Send her/him an email

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events