In order to build a structured policy response which aligns with IDM, the ldap attribute associated with the "passwordQualityAdvice" should be returned.
IDM needs to return the IDM property associated with the DS ldap attribute. We can look up the IDM property on the IDM side by using this DS ldap attribute if it is returned.
For example, this IDM policy result shows where we return a "property".
The following DS policy result should return something like "attribute" : "theLdapAttributeUsedForPasswordAttribute" in the "passwordQualityAdvice"