I asked this question at the start of the season. Our county stated:
If the player/manager is off the pitch, you caution or send off as team official.
If he is on the pitch as a player, you caution or send off as a player.
If he is cautioned on the pitch then goes off as a team official, the...