Custom badge for trust level 0

AI-generated summary

The discussion revolves around granting a custom badge to users with trust level 0. Farhan_Hossen initially faced issues with badge assignment despite correct setup, and Lhc_fl explained that badges are granted daily and suggested using the /sidekiq/scheduler to manually trigger the Jobs::BadgeGrant job. Farhan_Hossen then asked if badges could be granted immediately upon account creation and revoked when users reach trust level 1. Lhc_fl noted that the current setup automatically revokes badges daily, but the immediate revocation upon trust level change hasn’t been tested.

I’m trying to grant a badge to all the new users in my forum. I’m trying the following

I see this preview


But the badge is not assigned

Oh and I don’t want the badge for users after reaching a higher trust level.
Any idea please?

Badges are granted at a fixed time each day. It looks like there is nothing wrong with your code, then all you have to do is wait for the next day and it will automatically grant.

(Or you can also go to /sidekiq/scheduler, find Jobs::BadgeGrant and press trigger)

Thank you so much. It worked. Do you have any suggestions on how can I grant the badge as soon as a user creates an account? I tried to change the trigger to “When a user is edited or created”
and it worked fine. But I also need to remove the badge when a user reaches trust level 1. Is this something feasible?
Thank you again.

With your current configuration, nothing needs to be done. It will run the task every day and revoke the old badges.
I haven’t tried yet whether it will be immediately revoked when the user reaches trust level 1.