public function diffUserAccounts($getMissingAccountsLocally = true)
    {
        $ad = $this->getAdAccounts();
        $local = $this->getLocalAccounts();

        if ($getMissingAccountsLocally === true) {
            return array_diff((array)$ad, (array)$local);
        } else {
            return array_diff((array)$local, (array)$ad);
        }
    }
public function diffUserAccounts($getMissingAccountsLocally = true)
    {
        $ad = $this->getAdAccounts();
        $local = $this->getLocalAccounts();

        if ($getMissingAccountsLocally === true) {
            return array_diff((array)$ad, (array)$local);
        } else {
            return array_diff((array)$local, (array)$ad);
        }
    }
public function diffUserAccounts ( $ getMissingAccountsLocally = true ) { $ ad = $ this -> getAdAccounts ( ) ; $ local = $ this -> getLocalAccounts ( ) ; if ( $ getMissingAccountsLocally === true ) { return array_diff ( ( array ) $ ad , ( array ) $ local ) ; } else { return array_diff ( ( array ) $ local , ( array ) $ ad ) ; } }
Get all usernames as an array that dosent exist in either enviroment
@param  $missingAccountsLocally Set to "true" to get accounts that exists in ad but not in WordPress. False value reverses the check.
@return array
Get all usernames as an array that dosent exist in either enviroment