Merge "Add back the throwIfParentInstance checking in getAffiliationIds" into oc-dev
am: 91c6e44e9e

Change-Id: I360c03f15bf8a84d58100e371ed5528db6975f4d