Hi,
I would like to create a query that returns all inactive users on Confluence.
I know that I can do that by using com.atlassian.confluence.user.UserAccessor using the function findUsersAsList, but, I dont know how to write the Query object (com.atlassian.user.search.query.UserQuery) to return that info.
Can anybody help me with this?
Thanks
Community moderators have prevented the ability to post new answers.
If you can use crowd the code will be something like:
final CrowdService crowdService = ...; UserQuery<User> query = new UserQuery<User>(User.class, new TermRestriction<Boolean>(UserTermKeys.ACTIVE, false), 0, EntityQuery.ALL_RESULTS); return crowdService.search(query);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.