Handled usecase where the required role is not a string.