Data explorer query for all active users (Lurkers + Posters)

Thanks for sharing this. I tried to use it and also a very similar code on badge querys but I get this error:

Contract violation:
Query does not return a 'granted_at' column

I’m missing something on the code in order to use this query on badge system? My usecase is automate the ‘lurkers’ group :slight_smile: