SCOM Active Directory Integration from CMDB Management Pack
This management pack contains an example on how to use the SCOM AD integration for agent auto-assignment, but instead of the built in LDAP methods, you can use a CMDB as your datasource on how to populate this in the special AD container and security groups.
You will need to edit:
SQLServer and SQLDBName in the datasource script.
In each rule: