Unstructured sources: syncing ACL changes
The ACL recorded on a node is a copy, taken when the knowledge base sent the document. It changes only when the knowledge base sends the document again, which happens when the data source syncs. AWS Context does not rely on the copy alone.
Before returning a result from a knowledge base document, AWS Context confirms with the knowledge base that the end user can read that document now, using the connection’s data access role, or the caller’s credentials if the connection has none. A result the knowledge base denies, or cannot confirm, is withheld. When the source narrows a document’s ACL, the document therefore stops appearing once the knowledge base knows of the change, whether or not the knowledge base has sent the document again.
Group membership works differently. AWS Context records the groups in an ACL, not their members. When an end user joins or leaves a group at the source, that end user’s queries are evaluated against the new membership once the knowledge base reports it.