This question already has an answer here:

For example, a rogue fails a roll attempting to unlock a prison cell. All other pc party members fail on their respective rolls. At that point, may the initial rogue try again or are the prisoners in the cells just stuck there?


marked as duplicate by NautArch dnd-5e Feb 28 at 2:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.