If a student asks me to write a letter of recommendation do I need to obtain a written consent?

If the letter will include your personal observations only, then you do not need to obtain the student’s written consent. If you intend to refer to the student’s grades or other education records, then the student will need to provide written consent.