Added calls to mod_assign_get_user_flags and mod_assign_get_user_mappings, not tested though.