up previous next contents
Up: Use Cases Previous: Edit User Account Next: Add Group Account   Contents


Delete a User Account

This use case describes the process of deleting a user account from the system.

Notes

Actors

  1. Administrator

Pre-Conditions

  1. The Administrator is logged into the system.

Basic Path: Administrator Deletes One User Account

  1. The Administrator selects a "List User Accounts" option
  2. The Administrator selects one user from the list, and then chooses an option to delete that user account
  3. If the user has any job locks the Administrator is informed "The user has the following jobs locked, and the user account cannot be deleted at this time", followed by a list of jobs and job modules that are locked
    1. Show the username, job short description, module, and lock date/time
    2. The system offers the option of deleting all job locks at this time
    3. The Administrator selects the option to clear all job locks
    4. continue
  4. Else, continue
  5. The system prompts with an "Are you sure?" message
  6. If the Administrator replies "Yes, I am sure"
    1. The system deletes the user account from the database

Post-Conditions

  1. The user account is deleted from the database
  2. In the future, when any jobs are listed or opened that this user created, those jobs should be displayed as being owned by Unknown User

Alternate Path #1: Administrator Deletes More Than One User Account

  1. The Administrator selects a "List User Accounts" option
  2. The Administrator selects two or more users from the list, and then chooses an option to delete those user accounts
  3. The system prompts with a message: "You are about to delete the following user accounts, are you sure?"
  4. If the Administrator replies by canceling the operation, the use case stops here
  5. Else, if the Administrator replies "Yes, I am sure"
  6. All user accounts that do not have jobs locked at this time are deleted
  7. If any user accounts have job locks, the Administrator is informed "The following users have jobs locked. Would you like to clear their job locks and delete their user accounts? , and their user accounts cannot be deleted at this time", followed by a list of jobs and job modules that are locked by the remaining users
    1. Show the username, job short description, module, and lock timestamp
    2. The Administrator selects the option to clear all job locks and delete the user accounts
  8. The system prompts with an "Are you sure?" message
  9. If the Administrator replies "Yes, I am sure"
    1. The system deletes the user account from the database

Post-Conditions

  1. User accounts that did not have jobs locked are removed from the system
  2. After the completion of this use case, when any jobs are listed or opened that this user created, those jobs should be displayed as being owned by Unknown User

"Used" Use Cases

  1. List User Accounts

Other Requirements

  1. The Administrator account cannot be deleted
  2. The Unknown User account cannot be deleted
  3. Note that in this use case clearing all locks is an "all or nothing" proposition. Selectively clearing job locks is not available from this point in the application