Module Description

This module implements XEP-0016: Privacy Lists. This extension allows user to block IQs, messages, presences, or all, based on JIDs, subscription, and roster groups.


  • backend (atom, default: mnesia): Storage backend. Currently supported are mnesia, rdbms and riak.

Example Configuration

{mod_privacy, []},


If you'd like to learn more about metrics in MongooseIM, please visit MongooseIM metrics page.

Backend action Description (when it gets incremented)
get_privacy_list A privacy list is retrieved from a DB.
get_list_names Names of user's privacy lists are fetched from a DB.
get_default_list A default privacy list for a user is fetched from a DB.
set_default_list A default list's name for a user is set in a DB.
forget_default_list A default list's name for a user is removed from a DB.
remove_privacy_list A privacy list is deleted from a DB.
replace_privacy_list A privacy list is updated (replaced) in a DB.