The introduction of Director IDs by the ATO is designed to help stamp out illegal phoenixing and other fraudulent activity, by giving each director a unique identifier that they keep indefinitely. Directors can apply for their ID from November 2022. You will need to set up a MyGovID in preparation.
When you need to apply depends on the date you were appointed as a Director.