And Zadok the son of Ahitub, and Ahimelech the son of Abiathar, were the priests; and Seraiah was the scribe; Seraiah - the scribe - Most likely the king's private secretary. See 1 Chronicles 24:3 (note).
Related Commentaries of 2 Samuel 8:17
2 Samuel 8:17
17 And Zadok the son of Ahitub, and Ahimelech the son of Abiathar, were the priests; and Seraiah was the scribe;f