Make the espresso in an espresso maker or an Aeropress, or make very strong coffee.
Wet the rim of the cocktail glass. Place the finely ground coffee beans and sugar on a plate, and tilt the outside rim of the glass into the mixture so that it coats the outer rim.
Place the coffee, vodka, Kahlua, and Baileys in a cocktail shaker. Add 2 handfuls ice and shake until cold. Strain into the prepared cocktail glass.
