Status flags can only be added and removed by Discord.
If you only wish to filter users with status flags over a certain period of time, you can utilize the joinedafter: and joinedbefore: date range terms in the search box. Example: status:alert joinedafter:2022-06-01
Specific statuses can be searched by specifying the status flag name in the search box. Example: status:Spammer
Informational status flags
Status
Status description
Staff
The user is a Discord staff member.
Partner
The user is a Discord partner.
VerifiedBot
The user is a verified bot.
VerifiedDeveloper
The user is a verified developer.
ActiveDeveloper
The user is an active developer.
Collaborator
The user is a Discord collaborator.
RestrictedCollaborator
The user is a restricted Discord collaborator.
BypassesVerification
The user bypasses Discord verification.
Users with informational status flags can be searched using the status:info query.
Alert status flags
Status
Status description
Spammer
Discord has identified this user as a Spammer.
Quarantined
Discord has quarantined this user.
AutomodQuarantinedUsernameOrGuildNickname
Discord automod quarantined the user’s name.
AutomodQuarantinedBio
Discord automod quarantined the user’s bio.
Users with alert status flags can be searched using the status:alert query.
Warning status flags
Status
Status description
NewAccountJoinedServer
A newly created Discord account joined the server within the timeframe set in the Bot’s policies panel.
Users with warning status flags can be searched using the status:warning query.