MAX_USER_CONNECTIONS can be set per account. When authorizing accounts through roles I would expect that it is possible to restrict all users having the same role in the same way without needing to issue a separate GRANT USAGE ON . to user@host WITH ...
Therefore it should be possible to preset the restriction in the role definition like
GRANT USAGE ON . TO rolename WITH MAX_USER_CONNECTIUONS 2;