# Join 2 IDP attribute of response

**URL:** <https://forum.inductiveautomation.com/t/join-2-idp-attribute-of-response/71541>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [March 24, 2023, 10:59am UTC](https://forum.inductiveautomation.com/t/join-2-idp-attribute-of-response/71541 "2023-03-24T10:59:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adriano\_Generoso\_da](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/adriano_generoso_da/32/43895_2.png) [@Adriano\_Generoso\_da](https://forum.inductiveautomation.com/u/Adriano_Generoso_da)\
**Post date:** [March 24, 2023, 10:59am UTC](https://forum.inductiveautomation.com/t/join-2-idp-attribute-of-response/71541/1 "2023-03-24T10:59:37Z")

</div>

Hello Folks,

I'm trying to concat or join 2 IDP role attributes into 1 to populate the Roles after the authentication.

I teste the code `replace(replace(replace({attribute-source:userInfo:AdGroups},"]",",") + replace({attribute-source:userInfo:AdGroups2},"["," "),"[",""),"]","")`

But they display a error with cannot convert the text to array, the end result will be GroupA, GroupB, GroupC, ......

I also tried to make the final result like : [GroupA, GroupB, GroupC,.....] not worked also.

The problem was the IDP return multiuple attibute with roles from the user, ex. ADGroups return a list of groups, and the ADGroups2, return another list with more groups, since is diferente managed by IDP.
