(This is a follow-on from The Roman Catholic Church’s dogma of binding and loosing sin)
The Roman Catholic dogma of “Confession,” as with all its dogmas, is based on the mother of all dogmas, the infallibility of Peter, whom they claim to be their first pope, and its sister dogma, the “Apostolic succession.” The Roman Catholic Church authorises its priests to forgive/absolve sins. In this regard, John 20:23 is one of the RCC’s texts: “If YOU forgive the sins of any, they are forgiven them; if YOU withhold forgiveness from any, it is withheld.”
The Roman Catholic interpretation is that these were all or some of the 11 APOSTLES. Let us back up to verse John 20:19:
 On the evening of that day, the first day of the week, the doors being locked where the DISCIPLES were for fear of the Jews, Jesus came and stood among them and said to them, “Peace be with you.”  When he had said this, he showed them his hands and his side. Then the disciples were glad when they saw the Lord.  Jesus said to them again, “Peace be with you. As the Father has sent me, even so I am sending you.”  And when he had said this, he breathed on them and said to them, “Receive the Holy Spirit.  If you forgive the sins of any, they are forgiven them; if you withhold forgiveness from any, it is withheld.”
The RCC position is based on the view that these disciples were the Apostles only. But why should this be so? Because this power resides in the Apostolic succession through Peter. So, to have disciples who are not Apostles in the room (in John 20:19-23 above) would not be good for the RCC.
I turn to Luke 24, the episode when two disciples meet Jesus on the road to Emmaus and to what happened when they returned to Jerusalem to tell other disciples what they had seen and heard:
33 And they rose that same hour and returned to Jerusalem. And they found the eleven AND THOSE WHO WERE WITH THEM GATHERED TOGETHER, 34 saying, “The Lord has risen indeed, and has appeared to Simon!” 35 Then they told what had happened on the road, and how he was known to them in the breaking of the bread…44 Then he said to them, “These are my words that I spoke to you while I was still with you, that everything written about me in the Law of Moses and the Prophets and the Psalms must be fulfilled.” 45 Then he opened their minds to understand the Scriptures, 46 and said to them, “Thus it is written, that the Christ should suffer and on the third day rise from the dead, 47 and that repentance and forgiveness of sins should be proclaimed in his name to all nations, beginning from Jerusalem. 48 You are witnesses of these things. 49 And behold, I am sending the promise of my Father upon you. But stay in the city until you are clothed with power from on high.”
So, in the room with Jesus were the 11 Apostles as well as OTHER disciples. The upshot: the idea that “disciples” in John 20:19-23 meant more than just Apostles is extremely cogent.
To return to John 20:23, the passage can only mean this: “Now, says S Lewis Johnson, notice the force of the perfect passive. So, what does this mean then?
“Whosoever sins ye forgive, they shall have been forgiven to them; and whosoever sins ye retain, they shall have been retained.” Well, when it’s all put together, the statement is simply this; the church has not been given the authority to forgive sins. She has been given the authority to proclaim forgiveness to the believing and judgment to the unbelieving. And as long as the church is faithful to the word of God, her pronouncements do simply reveal what has already been determined in heaven. In other words, God has set forth the conditions by which forgiveness, and by which no forgiveness may take place. And therefore, the decisions that count are made in heaven, not upon the earth.” (S L Johnson, Basic doctrine, “The forgiveness of sins”).
The Apostle Peter, leader of the twelve, was without doubt Primus inter pares, first among equals. Peter, however, never ever said anything at all like “Ego te absolvo a peccatis tuis in nomine Patris, et Filii, et Spiritus Sancti” (I absolve/forgive you in the name of the Father, the Son and the Holy Spirit.” What does Peter say to Simon the sorcerer? “Thy money perish with thee, because thou hast thought that the gift of God may be purchased with money. Thou hast neither part nor lot in this matter: for thy heart is not right in the sight of God. Repent therefore of this thy wickedness, and pray God, if perhaps the thought of thine heart may be forgiven thee” (Acts 20:8).
Peter; forgive sins? Perish the thought, but hopefully not those who entertain the thought.