Is there a way to know when someone joins confluence-administration group?

Is there any way to know that someone has joined the confluence-administration group? I was thinking that something might end up in the logs, and I could set up a script to look for that, but I checked the log and didn't see one.

Is there any other way to accomplish this? Would it require a plugin?

3 answers

1 accepted

Accepted Answer
0 votes

E.g.

select ID from groups where GROUPNAME='confluence-administrators';

And then make select to find all user with mentioned group id.

Or you can use most stupid solution like this:

curl --user username:password --insecure https://wiki.example.net/confluence/admin/users/domembersofgroupsearch.action?membersOfGroupTerm=confluence-administrators | grep "viewuser.action?username="| sed 's/<[^>]*>//g' | tr -d ' '

Or you can make trigger in database with email notification when rows added/removed/modified.

There is a class listed in the Confluence administration -> 'profile and logging' options. If we set the 'com.atlassian.confluence.user.crowd' class logging level to 'DEBUG' we can see an entry such as the following for when a user is added to a group.

2012-10-09 12:32:28,178 DEBUG [http-1430-2] [confluence.user.crowd.CachedCrowdMembershipDao] addUserToGroup adding user [ roberto ] to group [ confluence-administrators ]

Perceivably, one could create a script that parses the logs and monitors for an entry such as this which then sends an alert email. However, there is a potential for a lot of spam in the log files and this only tells you someone has been added.

Hello, you have to be a more specific. What kind of authentication are you using (crowd, jira, own)?

There can be different way to get your information.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 13 hours ago in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

169 views 0 5
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