Minecraft wiki entry for spectate, associated text: Specifies the spectating player. If unspecified, defaults to the executor.
Must be a player name, a target selector or a UUID. And the target selector must be of single-player type.