How do you create an automation that will exclude members in a certain role from moderation?

We would like to exclude users in a site role from the moderation rules that we have in place. Looking for feedback if you've set up something similar in your community.



add tags
[edited by: Elizabeth Uva at 6:40 PM (GMT 0) on Fri, Oct 8 2021]
Parents
  • Former Member
    0 Former Member

    In Community v12, there's a setting for this out-of-the-box: Administration > Moderation Options > Exemptions > Exempt Roles.

    In v11, you can't quite accomplish it the same way, but you can manage a similar behavior with automations. A couple notes:

    • You can manage a list of roles via a configuration option using core_v2_roleLookup.
    • You can trigger from AbuseAppeal.AfterCreate to detect if the AuthorUserId is a member of one of the configured roles (core_v2_roleUsers.IsUserInRoles), and approve the appeal (core_v2_abuseAppeal.AcceptAppeal). This won't prevent any of the reports, but it will automate their approval.
Reply
  • Former Member
    0 Former Member

    In Community v12, there's a setting for this out-of-the-box: Administration > Moderation Options > Exemptions > Exempt Roles.

    In v11, you can't quite accomplish it the same way, but you can manage a similar behavior with automations. A couple notes:

    • You can manage a list of roles via a configuration option using core_v2_roleLookup.
    • You can trigger from AbuseAppeal.AfterCreate to detect if the AuthorUserId is a member of one of the configured roles (core_v2_roleUsers.IsUserInRoles), and approve the appeal (core_v2_abuseAppeal.AcceptAppeal). This won't prevent any of the reports, but it will automate their approval.
Children