The permission_name is permission in table roles_permissions that define...

...d in JdbcRealm.

protected static final String DEFAULT_PERMISSIONS_QUERY = "select permission from roles_permissions where role_name = ?";