userId property

String? userId
getter/setter pair

The unique id of the user that this deployment collects data from.

This userId may, or may not, be identical to the id of the user who is logged into an app or uploads data.

By being able to separate who collects (and potentially uploads) a data point from who the data point belongs to, allows for one user to collect data on behalf of another user. For example, a parent on behalf of a child.

This user id is stored in the DataPointHeader as the userId.

Implementation

String? userId;