Forums

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

Scriptrunner Listener: User Removed from Group event

Ibraheem Chaudry February 5, 2022

Hi I am trying to write a listener to run some business logic in the case a user is removed from a particular group. Currently experimenting with UserEvent API to find a way to grab that particular event but not successful so far. 

 

Would greatly appreciate some help/advise if anyone has knowledge on this. 

1 answer

Ibraheem Chaudry February 5, 2022

Hi @Pramodh M 

Thank you for the prompt response. I could very use the GroupMembershipDeletedEvent to get necessary information for function to run. However, this event is not listed under events for scriptrunner options. Any suggestions? 

 

image.png

Pramodh M
Community Champion
February 5, 2022

Create a Webhook listener!!

Ibraheem Chaudry February 5, 2022

I don't see that option :( 

What am I doing wrong 

image.png

Pramodh M
Community Champion
February 5, 2022

Choose custom event listener and include script for checking the audit log for the user removed from group event

https://confluence.atlassian.com/doc/audit-log-events-in-confluence-1005333793.html

Ibraheem Chaudry February 6, 2022

We are on older version of Confluence 6.15.9

Relevant Documentation: https://confluence.atlassian.com/conf615/audit-log-967338485.html

The listener won't trigger until an appropriate listener is selected. The problem is I can't find any event that gets triggered on membership changes. 

The groupEvent only triggers on creation and deletion of Group not membership. 

Relevant Docs: https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/event/events/group/GroupEvent.html

 

Please advise 

image.pngimage.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events