You might do something different, if the captives are "jailed" you may add an action to the door or some object nearby to release them, the player activating the action is clearly who released them and the captives join the group of that player. You may also add that action individually to each captive, so a player needs to release them one by one.