1. A method for processing activity records, the method comprising: obtaining an activity record; generating an anonymization dictionary, wherein generating the anonymization dictionary comprises: detecting, in the activity record, a plurality of target entities to be anonymized; making a determination that a resource is associated with a set of the target entities of the plurality of target entities; after making the determination: assigning an anonymized identity to the set of target entities; generating an anonymization identifier for each target entity in the set of target entities to obtain a plurality of anonymization identifiers each comprising the anonymized identity; processing the activity record using the anonymization dictionary to obtain an anonymized activity record; and storing the anonymized activity record.