Hi,
user_data is not used for loop closure detection and mapping. It is used to save some custom data to database. The user data is republished with the whole map data. An example of usage can be found here:
http://wiki.ros.org/rtabmap_ros/Tutorials/WifiSignalStrengthMappingUserDataUsagecheers,
Mathieu