GameFreak has announced on the Pokemon Global Link Japanese Site that they have banned 5,954 Pokémon Sun & Moon players from Participating in Online Features.
Those that have been banned will receive the Error Code: 090-0212 when they try to enter one of the Online Features
The Pokémon Company will continue looking and banning people that alter their save data aka have used PKHex, PKSM or PowerSave
Source