Hi Chirag, I tested that we can actually set identityAttribute Value using Identity.setAttribute() method.
Identity.setAttribute()