Abstract
A method, system, and computer-readable medium of applying ownership-based policies to a document are disclosed. The disclosed technology includes intercepting a linked document being sent to a corporate network, using an inline proxy, responsive to an Application Program Interface access, by an account, to view a linked document stored in cloud storage, accessing file metadata for the linked document, wherein the file metadata includes a creation owner field that has a value or null value reflecting a domain that was active when the linked document was created, classifying the linked document as personal or corporate responsive to the creation owner field, and applying a security policy to the linked document responsive to the classifying.