this feels is a very interesting edge case. Assuming this is self hosted, what does this return?
./launcher enter app
rails c
Group.pluck(:name, :id)
=> [["everyone", 0],
["moderators", 2],
["admins", 1],
["staff", 3],
["trust_level_0", 10],
["trust_level_1", 11],
["trust_level_2", 12],
["trust_level_3", 13],
["trust_level_4", 14]]
Discourse is very particular about these ids, staff must be 2, admins must be 1. If somehow you have a different group with that name there could be trouble. I would also ensure no user is called admins