.. _label-uc-user-manage:

Modify a User Account
***********************************************************************

Short Description
-----------------------------------------------------------------------

A user account and connected user data entities are modified by staff.

Actor(s)
-----------------------------------------------------------------------

Officer


Trigger(s)
-----------------------------------------------------------------------

- Imports (modifying existing data)
- Web form(s) submitted by authorized user


Result(s)
-----------------------------------------------------------------------

- Data (name, email adress) of the given user account was modified.
- If the role was changed, the connected user data entity was replaced.
- Data of the new user data entity was added.


Incoming Data
-----------------------------------------------------------------------

- User ID, names and values of parameters to change

Outgoing Data
-----------------------------------------------------------------------

- Message about user account modification
- Regarding users are informed by email or
  SMS.
- Log message


Precondition(s)
-----------------------------------------------------------------------

- User ID must exist.
- Submitting user must be authorized to perform the operation.


Postcondition(s)
-----------------------------------------------------------------------


Invariant(s)
-----------------------------------------------------------------------


Essential Steps
-----------------------------------------------------------------------

- System receives user ID and any optional parameters
  specifying the data to change in the user account.
- Data is validated.
- If passed-in parameters are invalid, user is offered a possibility
  to fix the invalid data.
- System updates the given user account and connected data entities.


Open Issues
-----------------------------------------------------------------------



Remarks
-----------------------------------------------------------------------


.. raw:: latex

      \
