1. A method of crawling secure documents in an enterprise system, comprising: crawling a data source; receiving a query from a user to the data source; in response to the query, determining that one or more of the resulting documents within the data source require security credentials; accessing an identity management system to obtain a security attribute value for the user corresponding to the one or more secure documents; and appending the security attribute value for the user to the query and using the appended query to query to access the secure documents.