Removing pre-defined roles

Is there anyway to remove/disable the pre-defined reserved role? The own_index role is causing errors as some usernames contain an underscore: Querying with username starting with underscore causes org.elasticsearch.indices.InvalidIndexNameException · Issue #245 · opendistro-for-elasticsearch/community · GitHub
Would be good if the roles could be removed in the configeration

@robmartin I don’t know of a way to remove those roles, but the workaround could be to disable the mapping for that role (can be done via UI). The only downside is you will need to disable the private tenant, as this is what that role is used for. Hope this helps

Does anyone know if there is any way to override security/src/main/resources/static_config/static_roles.yml in the security config?