dboo::odb::user_groups
void user_groups ( const __OSL_NS__::user_id& userid,
const std::vector<group_id>& addgroups,
const std::vector<group_id>& removegroups);
user_groups( userid, addgroups, removegroups )
Add or remove a user to groups. A user with admin rights must be logged in for this operation to be successful. Connection must be to the server database. If a group in addgroups does not exist it will be created.
Parameters
- userid
Id of user to modify
- addgroups
Groups to be added
- removegroups
Groups to be removed
Return value
(none)
Exceptions
Example