Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34422

Allow for bulk suspension of accounts

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Requirements

      • An installation with at least 500 users (bulk upload or directly import into the database may be viable methods for increasing your user numbers).

      Testing

      1. Go to [Settings ► Site administration ► Users ► Accounts ► Bulk user actions].
      2. Add all the users and then select Suspend user account from the select menu and click go.
      3. Click yes to confirm.
      4. Got to [Settings ► Site administration ► Users ► Accounts ► Browse list of users].

      [Test] All of the user accounts should be suspended except the admin accounts

      1. Go back to bulk user actions (see step one)
      2. All of the users should still be selected.
      3. Select Activate user accounts from the select menu and click go
      4. Click yes to confirm.
      5. Got to [Settings ► Site administration ► Users ► Accounts ► Browse list of users].

      [Test] All of the user accounts should be activated.

      • In [Settings ► Site administration ► Users ► Accounts ► Bulk user actions] try applying some filters to select only a sub-set of users.
        • Make sure to highlight the selected users and click the "Add to selection" button.
      • Run through the above tests again with the sub-set of users.
      Show
      Requirements An installation with at least 500 users (bulk upload or directly import into the database may be viable methods for increasing your user numbers). Testing Go to [Settings ► Site administration ► Users ► Accounts ► Bulk user actions] . Add all the users and then select Suspend user account from the select menu and click go . Click yes to confirm. Got to [Settings ► Site administration ► Users ► Accounts ► Browse list of users] . [Test] All of the user accounts should be suspended except the admin accounts Go back to bulk user actions (see step one) All of the users should still be selected. Select Activate user accounts from the select menu and click go Click yes to confirm. Got to [Settings ► Site administration ► Users ► Accounts ► Browse list of users] . [Test] All of the user accounts should be activated. In [Settings ► Site administration ► Users ► Accounts ► Bulk user actions] try applying some filters to select only a sub-set of users. Make sure to highlight the selected users and click the "Add to selection" button. Run through the above tests again with the sub-set of users.
    • Affected Branches:
      MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-34422-master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              xjoaniex Joan Harper
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              15 Vote for this issue
              Watchers:
              24 Start watching this issue

                Dates

                Created:
                Updated: