The social welfare function ranks the $n$ available alternatives as $x_1 \succ x_2 \succ x_3 \succ \ldots \succ x_n$.
Every agent whose ranking over the available alternatives matches the social ranking is a "dictator".
Note that "dictator" in Arrow's theorem does not necessarily mean that that person decides the social ranking. As far as the individual and the society have the same ranking, that person is indistinguishable from a dictator.