diff --git a/synapse/storage/user_directory.py b/synapse/storage/user_directory.py
index 52b184fe787da5d3e375a1737ed6a9e89fac1212..2a4db3f03cf5176fdc0dd457f59e344dfe1beb9e 100644
--- a/synapse/storage/user_directory.py
+++ b/synapse/storage/user_directory.py
@@ -439,6 +439,7 @@ class UserDirectoryStore(SQLBaseStore):
             },
             retcol="share_private",
             allow_none=True,
+            desc="get_if_users_share_a_room",
         )
 
     @cachedInlineCallbacks(max_entries=500000, iterable=True)