Users are not in moderators / staff groups when invited from the wizard.
I submitted this PR to fix this:
https://github.com/discourse/discourse/pull/7530