Yes, I'm sure.
Because I have to develop a new course format plugin.
I have to automaticlly modify db after course creation and I think will be necessay to know (and use) the course id for the update of the db values.
I will develop a format course that automatically set restrict access on creation.
Have you got any advice?