Implement mapping of LDAP groups to scopes using the external_group_mappings table.