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

Listener to monitor large attachments Edited


I've created a listener in Scriptrunner for Confluence to monitor the upload of large attachments. I can get the attachment info (name, type, size) but how can I get the info on who uploaded the attachment (username, email)?

I'm using the AttachmentCreateEvent.

1 answer

1 accepted

0 votes
Answer accepted

I guess you can get list of attachments from the event (or a single attachment) and then look for those attachments creator(s).

I believe attachment's creator would be same person as the user who uploaded it.


would return you an Attachment object, then you can get the ConfluenceUser object from it by doing 


and user then has (full)name and email fields you can access. well, it's all in the docs

Thanks, in the mean time I've used:

user = AuthenticatedUserThreadLocal.get()

But I like your solution better. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

283 views 9 7
Join discussion

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