Hi,
I'm writing a plugin to get some information from confluence. That information includes a list of all inactive (deleted) users that has written a comment on a specific space.
How to do that using the Confluence Plugin API?
I tried using the following managers, but all of them work only with active users:
I really need some help here.
Thanks a lot.
Community moderators have prevented the ability to post new answers.
You can use
userAccessor.isDeactivated(user)
to examine if the user is deactivated.
If your plugin extends the class ConfluenceActionSupport you can get the userAccessor by the help of the method getUserAccessor().
Hi Angel,
I think the following documents might be of some use to help you develop a plugin to identify inactive users:
All the best,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It will work when the website is back up again. Atlassian seem to be having some issues with servers today, this is the 2nd service that's been down today. maybe it's upgrade day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
The first link doesnt work https://confluence.atlassian.com/display/CONFKB/How+to+Identify+Inactive+Users+in+Confluence
Is that the right link?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Matthew, do you know how to execute queries inside the plugin?
In order to get the list of inactive users I need to perform the following quer:
select
*
from
cwd_user
where
active =
'F'
;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.