-
Improvement
-
Resolution: Won't Do
-
Major
-
None
-
2.3.1
-
MOODLE_23_STABLE
-
wip-
MDL-34422-master -
I have brought in all of the user accounts from Active Directory through LDAP.
On examination of the accounts, it appears that there are a number of generic accounts that really shouldn't be able to sign in to Moodle.
I have segregated these accounts into a cohort and would like to be able to either suspend them or change their authentication to 'No login'. I would like to do this as a bulk action.
I could do this myself by SQL by updating the column mdl_user.suspended
where mdl_user.id IN (SELECT M.[userid]
FROM [moodledb].[dbo].[mdl_cohort_members] M, [moodledb].[dbo].[mdl_cohort] C
WHERE M.cohortid = C.id
AND M.cohortid = 2 ) (where 2 is the number of the cohort id in question)
but I am not sure if this would have an affect on anything else.