Class UserResource


  • public class UserResource
    extends Object
    User management features missing from core Confluence today.

    Shamelessly copy-pasta'd from the Crowd REST Plugin SearchResource and SearchController, with simplifications to make it use the CrowdService, instead of the ApplicationService.

    • Constructor Detail

      • UserResource

        public UserResource​(com.atlassian.crowd.embedded.api.CrowdService crowdService,
                            PersonService personService,
                            UserAccessor userAccessor)
    • Method Detail

      • searchUsers

        public javax.ws.rs.core.Response searchUsers​(SearchRestrictionEntity searchRestrictionEntity,
                                                     int startIndex,
                                                     int maxResults)
      • searchGroups

        public javax.ws.rs.core.Response searchGroups​(SearchRestrictionEntity searchRestrictionEntity,
                                                      int startIndex,
                                                      int maxResults)
      • unsyncUser

        public void unsyncUser​(String username)
                        throws com.atlassian.crowd.exception.OperationNotPermittedException
        Throws:
        com.atlassian.crowd.exception.OperationNotPermittedException
      • countUnsyncedUsers

        public javax.ws.rs.core.Response countUnsyncedUsers()