HomeVendure FrameworkMoreMoreEntitiesRoleOn this pageRole@vendure/coreSource A Role represents a collection of permissions which determine the authorization level of a User on a given set of Channels. Signatureclass Role extends VendureEntity implements ChannelAware, HasCustomFields { constructor(input?: DeepPartial<Role>) @Column() code: string; @Column() description: string; @Column('simple-array') permissions: Permission[]; @Column(type => CustomRoleFields) customFields: CustomRoleFields; @ManyToMany(type => Channel, channel => channel.roles) @JoinTable() channels: Channel[];} Extends: VendureEntity Implements: ChannelAware, HasCustomFields codepropertystringdescriptionpropertystringpermissionspropertyPermission[]customFieldspropertyCustomRoleFieldschannelspropertyChannel[]Was this chapter helpful?It was helpfulIt wasn't helpfulReport IssuePreviousRegionNextSellerEdited Sep 3, 2026·View source