Isn't your true flow missing a break event, so that you exit the loop as soon as the correct claim is found?
As shown in your variables list, the one you're looking for is in the 2nd of 65 assertions. So after finding the correct one in iterator 2 and setting the correct userroles, your loop continues checking the rest. Since all the others are not what you're looking for, the other userroles are being set.
Since you're simply looking for a specific assertion, wouln't it be better to remove the loop and simply use the List operation Find? Then you can simply check wether the object was found from the list or not and decide which userroles to assign.
Have you tried to trim the value? See https://docs.mendix.com/refguide/string-function-calls#trim
hi Swann,
Can i know how do you call this Microflow? I have a requirement to Redirect the user who doesnt have access to application to an error page. Usually the error page is "SAML-error-result.vm " I wish to call a Microflow and show a page designed in Mendix, like in your case but i am not sure of how a MF needs to be called. It would be of great help if you can let me know. Thanks in advancehi Swaan, Can i know how do you call this Microflow? I have a requirement to Redirect the user who doesnt have access to application to an error page. Usually the error page is "SAML-error-result.vm " I wish to call a Microflow and show a page designed in Mendix, like in your case but i am not sure of how a MF needs to be called. It would be of great help if you can let me know. Thanks in advance