Is there way to map generic oAuth roles to grafana orgs and roles

I am looking at this pull request -

I am using keycloak as my external auth server.

I have configured generic auth according to the grafana docs. But there is no documentation of role mappings. Is this feature available and if yes how to use it?