imports/vx/both/code/util.js
/**
     * Count the tenant administrators in the specified tenant.
     *
     * @param {string} includeRetiredUsers True to include retired users.
     * @param {string} includeRetiredDomains True to include retired domains.
     * @param {string} domainIdIgnore Optional domain ID to be ignored.
     * @return {number} Count of system administrators in tenant.
     */
Count the tenant administrators in the specified tenant.
@param {string} includeRetiredUsers True to include retired users.
@param {string} includeRetiredDomains True to include retired domains.
@param {string} domainIdIgnore Optional domain ID to be ignored.
@return {number} Count of system administrators in tenant.
Count the tenant administrators in the specified tenant . @param { string } includeRetiredUsers True to include retired users . @param { string } includeRetiredDomains True to include retired domains . @param { string } domainIdIgnore Optional domain ID to be ignored . @return { number } Count of system administrators in tenant .
countTenantAdmin(tenantId, includeRetiredUsers, includeRetiredDomains, domainIdIgnore) {
        let userArray = Util.findUsersInTenant(tenantId, includeRetiredUsers, includeRetiredDomains, domainIdIgnore)
        let count = 0
        userArray.forEach(user => {
            if (Util.isUserTenantAdmin(user._id, tenantId)) {
                count++
            }
        })
        return count
    }
countTenantAdmin ( tenantId , includeRetiredUsers , includeRetiredDomains , domainIdIgnore ) { let userArray = Util . findUsersInTenant ( tenantId , includeRetiredUsers , includeRetiredDomains , domainIdIgnore ) let count = 0 userArray . forEach ( user => { if ( Util . isUserTenantAdmin ( user . _id , tenantId ) ) { count ++ } } ) return count }
Count the tenant administrators in the specified tenant.
Count the tenant administrators in the specified tenant .