Hello Team,
I have written infoMap to change one of the user attributes let's say Transaction password(custom attribute).
and then created a policy and access it as API. It's working fine
code for reference.
//imported required packages
var username = context.get(Scope.SESSION, "urn:ibm:security:asf:response:token:attributes", "username");
var password = utf8decode(context.get(Scope.REQUEST, "urn:ibm:security:asf:request:parameter", "password"));
var newPassword = utf8decode(context.get(Scope.REQUEST, "urn:ibm:security:asf:request:parameter", "newPassword"));
var confimPassword = utf8decode(context.get(Scope.REQUEST, "urn:ibm:security:asf:request:parameter", "confimPassword"));
// logic to update user attribute with scim API's.


but when I added branching with 1 branch for MAC OTP and other Branches with TOTP in Policy. it's working fine till the branching step once it moves to the change transaction password step. infoMap receives a null value for all the request attributes.
code for reference.
//imported required packages
var username = context.get(Scope.SESSION, "urn:ibm:security:asf:response:token:attributes", "username");
var password = utf8decode(context.get(Scope.REQUEST, "urn:ibm:security:asf:request:parameter", "password"));
var newPassword = utf8decode(context.get(Scope.REQUEST, "urn:ibm:security:asf:request:parameter", "newPassword"));
var confimPassword = utf8decode(context.get(Scope.REQUEST, "urn:ibm:security:asf:request:parameter", "confimPassword"));
// getting all attribute from request as null
// logic to update user attribute with scim API's.


// dynamic_url is taken from the previous api call(action attribute).



Can anyone help with the same?
------------------------------
Mukesh
------------------------------