Security functions

These functions are used to manage users and groups in the project's security system.