Running LDAP sync task retrieves all the users from AD, even the users disabled in Microsoft AD.
I want to alter the script such that it gets only the active users and not the disabled users from AD so that the remaining users (Disabled users in AD) can be marked as suspended in Moodle
Please help, I have no knowledge of AD code and parameters and methods