21. A method for processing activity records, the method comprising: obtaining a plurality of activity records, wherein each activity record comprises metadata documenting user activity; providing at least one of the plurality of activity records to each of a plurality of workers; receiving, from each of the plurality of workers, a set of target entities detected in the at least one activity record, wherein each target entity is metadata related to the user activity and requires anonymization; generating, using the sets of target entities, an anonymization dictionary, by: making a determination that a resource is associated with a plurality of the target entities, wherein a first target entity is obtained from a first worker of the plurality of workers and the second target entity is obtained from a second worker of the plurality of workers; and assigning anonymized identifiers to the plurality of target entities; providing a copy of the anonymization dictionary to each of the plurality of workers; receiving, from each of the plurality of workers, at least one anonymized activity record generated using the copy of the anonymization dictionary, wherein in the at least one anonymized activity record, target entities are replaced by the corresponding anonymized identifiers, specified in the anonymization dictionary; storing the at least one anonymized activity record.
21. A method for processing activity records, the method comprising: obtaining a plurality of activity records, wherein each activity record comprises metadata documenting user activity; providing at least one of the plurality of activity records to each of a plurality of workers; receiving, from each of the plurality of workers, a set of target entities detected in the at least one activity record, wherein each target entity is metadata related to the user activity and requires anonymization; generating, using the sets of target entities, an anonymization dictionary, by: making a determination that a resource is associated with a plurality of the target entities, wherein a first target entity is obtained from a first worker of the plurality of workers and the second target entity is obtained from a second worker of the plurality of workers; and assigning anonymized identifiers to the plurality of target entities; providing a copy of the anonymization dictionary to each of the plurality of workers; receiving, from each of the plurality of workers, at least one anonymized activity record generated using the copy of the anonymization dictionary, wherein in the at least one anonymized activity record, target entities are replaced by the corresponding anonymized identifiers, specified in the anonymization dictionary; storing the at least one anonymized activity record. 23. The method of claim 21 , wherein the plurality of activity records are obtained from a plurality of endpoint agents.