check the creatorUserRecordID field of the CKRecord
https://developer.apple.com/documentation/cloudkit/ckrecord/1462208-creatoruserrecordid
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: