Permissions + roles
Staff need the promotions permission (manage promotions) to open Marketing → Discounts → Automatic codes and create or change rules. Set it in Customers → User Groups.
Sellers on a marketplace can't create auto-coupon rules from their seller panel.
Customers only ever see their own codes, in their email.