This chapter took a very detailed look at the four main interfaces that you can use to manipulate and iterate over permissions and auditing entries for objects and attributes in your organization:
IADsAccessControlEntry
IADsAccessControlList
IADsSecurityDescriptor
IADsSecurityUtility
You should now have the tools in your programming belt necessary to modify the permissions in Active Directory as needed.