Manual:$wgPrivilegedGroups

Details
List of groups which should be considered privileged (user accounts belonging in these groups can be abused in dangerous ways). This is used for some security checks, mainly logging.

This was introduced in MediaWiki 1.41.0. It was backported to 1.40.1. It was backported to 1.39.5.