acs_user::demote_user (public)
acs_user::demote_user [ -user_id user_id ] [ -delete_portrait ]
Defined in packages/acs-tcl/tcl/community-core-procs.tcl
Demotes an ACS user to a person/party. This will fail if other tables have content referencing the users table. It is probably best for tables created in other packages to reference persons, parties, or acs_objects instead. This proc could be extended with an option to find all referenced tables and remove rows referencing this user.
- Switches:
- -user_id (optional)
- the user_id in the acs system that should be demoted.
- -delete_portrait (optional, boolean)
- Delete the portrait of the user
- Error:
- An error is thrown if user_id is not in the users table.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- demote_promote_a_user