You'll need to transform your data set to match the data structure required by the Scheduler. It displays the name specified by the "name" property:
https://api.daypilot.org/daypilot-scheduler-resources/
Example:
const yourResources = [ /* ... */ ];
const resources = yourResources.map(r => {
return {
...r,
name: r.role
};
});
When you display custom row header columns (https://doc.daypilot.org/scheduler/row-header-columns/) you can specify a which property of the data source item will be used as content:
config: {
// ...
rowHeaderColumns: [
{ name: "Role", display: "role"}
]
}