Role or user based session timeout

Hey everyone,
I built an authentication server with keycloak and it works good, keycloak provide session timeout for whole realm users, its okay but today I came up with the idea, I would like have role or user based session timeout. Some of roles timeout will be different than others. Is there any way to implement that kind of behavior with keycloak? Also what you think about that kind functionality, it could be useful ? or is it against to best practices?

BR