(self, admin, unknown, web, demo, commtrack, active=False, deactivated=False)
return user_ids
referenced from CaseListMixin to fetch user_ids for selected user type
        :param admin: if admin users to be included
        :param unknown: if unknown users to be included
        :param demo: if demo users to be included
        :param commtrack: if commtrack users to be included
        :return: user_ids for selected user types
referenced from CaseListMixin to fetch user_ids for selected user type
        :param admin: if admin users to be included
        :param unknown: if unknown users to be included
        :param demo: if demo users to be included
        :param commtrack: if commtrack users to be included
        :return: user_ids for selected user types
referenced from CaseListMixin to fetch user_ids for selected user type : param admin : if admin users to be included : param unknown : if unknown users to be included : param demo : if demo users to be included : param commtrack : if commtrack users to be included : return : user_ids for selected user types
def get_user_ids_for_user_types(self, admin, unknown, web, demo, commtrack, active=False, deactivated=False):
        """
        referenced from CaseListMixin to fetch user_ids for selected user type
        :param admin: if admin users to be included
        :param unknown: if unknown users to be included
        :param demo: if demo users to be included
        :param commtrack: if commtrack users to be included
        :return: user_ids for selected user types
        """
        from corehq.apps.es import filters, users as user_es
        if not any([admin, unknown, web, demo, commtrack, active, deactivated]):
            return []

        user_filters = [filter_ for include, filter_ in [
            (admin, user_es.admin_users()),
            (unknown, filters.OR(user_es.unknown_users())),
            (web, user_es.web_users()),
            (demo, user_es.demo_users()),
            # Sets the is_active filter status correctly for if either active or deactivated users are selected
            (active ^ deactivated, user_es.is_active(active)),
        ] if include]

        if not user_filters:
            return []

        query = (user_es.UserES()
                 .domain(self.domain_object.name)
                 .OR(*user_filters)
                 .remove_default_filter('not_deleted')
                 .remove_default_filter('active')
                 .fields([]))

        user_ids = query.run().doc_ids

        if commtrack:
            user_ids.append("commtrack-system")
        if demo:
            user_ids.append("demo_user_group_id")
            user_ids.append("demo_user")
        return user_ids
def get_user_ids_for_user_types ( self , admin , unknown , web , demo , commtrack , active = False , deactivated = False ) : from corehq . apps . es import filters , users as user_es if not any ( [ admin , unknown , web , demo , commtrack , active , deactivated ] ) : return [ ] user_filters = [ filter_ for include , filter_ in [ ( admin , user_es . admin_users ( ) ) , ( unknown , filters . OR ( user_es . unknown_users ( ) ) ) , ( web , user_es . web_users ( ) ) , ( demo , user_es . demo_users ( ) ) , # Sets the is_active filter status correctly for if either active or deactivated users are selected ( active ^ deactivated , user_es . is_active ( active ) ) , ] if include ] if not user_filters : return [ ] query = ( user_es . UserES ( ) . domain ( self . domain_object . name ) . OR ( * user_filters ) . remove_default_filter ( 'not_deleted' ) . remove_default_filter ( 'active' ) . fields ( [ ] ) ) user_ids = query . run ( ) . doc_ids if commtrack : user_ids . append ( "commtrack-system" ) if demo : user_ids . append ( "demo_user_group_id" ) user_ids . append ( "demo_user" ) return user_ids