Add Entitlement has dupes

Hi Everyone, I have a source where to add an entitlement I am making sequential API call, the first one being a single account aggregation to fetch some attributes that I need to input in the second add entitlement operation.

The entitlement is single-valued, even in the operation the only way to pass it is String, but upon testing I see that if I add roles to a user lets say A,B,C,D then on the source, he gets the role A and then B and so on which is single valued, but on IDN I can see that it shows all four roles on his account.

Please help with solution if you’ve seen this before.

Thankyou for taking the time to read.

How are you assigning each role to a user?
What connector are you using?
Are you able to share you search query?