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

Jonathan Simonoff
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2012

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

0 votes
Answer accepted
Jiří Wetter October 9, 2012

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.

Jiří Wetter October 9, 2012
1 vote
AndrewA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 16, 2012

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.

0 votes
Jiří Wetter October 9, 2012

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
TAGS
AUG Leaders

Atlassian Community Events