Assign roles from Cognito OpenID IdP

I am trying to set up AWS Cognito as the IdP for my Ignition project.
I can map most attributes but not the Roles.
the Roles field I am trying to map is an array e.g. [operators, supervisors]

Has anyone had similar issues with this? I get the feeling it's just a silly little error but not having any luck getting it working.

Edit: I have also tried mapping to the "custom:roles" field in case the array was the issue but this also does not map.

test login IdP respose data:

test login mapped attributes:

attribute mapping config:
image

2 Likes

Worked it out with the help of iControls support team.

It seems the colon was problematic, needed to wrap it in square brackets and double quotes and it parsed correctly.

image

5 Likes