\(M\left(0;y\right)\Rightarrow\left\{{}\begin{matrix}\overrightarrow{OA}=\left(1;-1\right)\\\overrightarrow{AM}=\left(-1;y+1\right)\end{matrix}\right.\)
\(OA\perp AM\Rightarrow\overrightarrow{OA}.\overrightarrow{AM}=0\)
\(\Rightarrow-1-\left(y+1\right)=0\Rightarrow y=-2\Rightarrow M\left(0;-2\right)\)