Defined in omni/structuredlog/StructuredLogSettingsUtils.h

constexpr const char *omni::structuredlog::kAnonymousUserIdModeSetting = "/structuredLog/anonymousUserIdMode"

The setting path that will indicate which type of anonymous user ID will be used in cases where no user ID is provided in the privacy.toml file or the privacy.toml file is missing.

This may be either “random” or “machine”. If it is “random”, a completely random user ID will be chosen. In this case the user will appear as though it had only ever run a single session in telemetry data. If it is “machine”, the user ID will be set to an identity derived from the calling machine’s hardware and OS information. In this case it would be possible to identify multiple sessions coming from the same user (though no identifying information of any kind would be present). The machine ID would be a one-way hash of a large amount of information about the system the session is run on. As long as the user runs again on that same machine it would give the same anonymous user ID. This setting defaults to “random”.

Note that omni.platforminfo.plugin must be available in order to generate the machine ID. If that plugin is not available, the “random” mode will be used instead. Any value other than the ones listed above will also fall back to using “random” mode.