Defining application role interfaces