1. A system for automatically creating a security access policy to an electronic document in a document management system, the system comprising: a processor; and a non-transitory computer readable storage medium, having computer readable instructions stored thereon for execution by the processor, causing the processor to: associate metadata with the document, the metadata comprising one or more attributes of the document; configure security access policies to be applied to documents in the document management system, comprising specifying one or more metadata rules governing application of security access policies to the documents, and specifying a dynamic metadata, which is dynamically retrieved based on external content analysis of the document performed outside the document management system, comprising the metadata not inferred from contents of the document; and determine the security access policy to be applied to the document to be added to the document management system based on said one or more metadata rules and the metadata associated with the document.