Logic to get IDP ID