def _get_assistive_access():
    cmd = 'sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "SELECT * FROM access"'
    call = __salt__['cmd.run_all'](
        cmd,
        output_loglevel='debug',
        python_shell=False
    )

    if call['retcode'] != 0:
        comment = ''
        if 'stderr' in call:
            comment += call['stderr']
        if 'stdout' in call:
            comment += call['stdout']

        raise CommandExecutionError('Error: {0}'.format(comment))

    out = call['stdout']
    return re.findall(r'kTCCServiceAccessibility\|(.*)\|[0-9]{1}\|([0-9]{1})\|[0-9]{1}\|', out, re.MULTILINE)
Check if a domain admin can delete a reseller.
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_assistive.py/_get_assistive_access--crossover with--dataset/ETHPy150Open tonioo/modoboa/modoboa/limits/tests/test_user_limits.py/PermissionsTestCase.test_domainadmin_deletes_reseller