You can add a document to a role in 2 ways:
Search this documentation
You can add document(s) to the role from the role.