How to relate parent credential and slave credential