Skip to main content
Sven-iX
Community Advisor
Community Advisor
Nov 19, 2026 7:58 PM UTC
Question

Fusion - adding users to a group - MiscActions module can't map array

Good evening! 
I’m hoping I am missing something obvious. 

I am trying to add a few users to an existing group, as members.
The MiscAction module has an “updateMembersList” action that has  “newMemberIDs” as input. 

If I manually add userIDs this module works. But when I try to map an array of userIDs it fails with a super helpful error “Whoops! Something went wrong. Please contact Workfront so we can figure out what went wrong and fix it." (code: 1700).

Mapping a string variable with a userID also fails with the same error.

It seems the “mapping” part is misbehaving in this module :(

 

Can anyone point me in the right direction? 

Cheers!

 

 

    3 replies

    Sven-iX
    Community Advisor
    Sven-iXCommunity AdvisorAuthor
    Community Advisor
    Nov 19, 2026 8:02 PM UTC

    OMG. I have to provide my own quotes around strings. 

    This is how you can use an array of IDs to add to a group 🤔😒🤦🏻

    The call succeeds. But no group members are added :(

    Translate
    Sven-iX
    Community Advisor
    Sven-iXCommunity AdvisorAuthor
    Community Advisor
    Nov 19, 2026 9:12 PM UTC

    In case anybody has the same problem - you can manually patch the group’s userGroups collection - each user group being an object like

    {
    "groupID":"6a84*********************",
    "isOwner": false,
    "userID":"{{23.ID}}"
    }

    looks like this - blueprint below

    {
    "subflows": [
    {
    "flow": [
    {
    "id": 42,
    "module": "util:SetVariables",
    "version": 1,
    "parameters": {},
    "mapper": {
    "variables": [
    {
    "name": "users to add",
    "value": "aemail1@fakecompany.com\nemail2@fakecompany.com\nemail3@fakecompany.com\nemail3@fakecompany.com\nemail4@fakecompany.com\nemail5@fakecompany.com\nemail6@fakecompany.com\nemail7@fakecompany.com\nemail8@fakecompany.com"
    },
    {
    "name": "groupID to add to",
    "value": "123124124124123123"
    }
    ],
    "scope": "roundtrip"
    },
    "metadata": {
    "designer": {
    "x": -1037,
    "y": 835,
    "name": "set vars"
    },
    "restore": {
    "variables": {
    "items": [
    "undefined",
    "undefined"
    ]
    },
    "scope": {
    "label": "One cycle"
    }
    },
    "expect": [
    {
    "name": "variables",
    "label": "Variables",
    "type": "array",
    "spec": [
    {
    "name": "name",
    "label": "Variable name",
    "type": "text",
    "required": true
    },
    {
    "name": "value",
    "label": "Variable value",
    "type": "any"
    }
    ],
    "mappable": false
    },
    {
    "name": "scope",
    "label": "Variable lifetime",
    "type": "select",
    "required": true,
    "mappable": false,
    "validate": {
    "enum": [
    "roundtrip",
    "execution"
    ]
    }
    }
    ],
    "interface": [
    {
    "name": "users to add",
    "label": "users to add",
    "type": "any"
    },
    {
    "name": "groupID to add to",
    "label": "groupID to add to",
    "type": "any"
    }
    ]
    }
    },
    {
    "id": 24,
    "module": "workfront-workfront:custom",
    "version": 2,
    "parameters": {
    "__IMTCONN__": null
    },
    "mapper": {
    "url": "user/search",
    "method": "GET",
    "headers": [
    {
    "key": "Content-Type",
    "value": "application/json"
    }
    ],
    "qs": [
    {
    "key": "filters",
    "value": "{\"emailAddr_Mod\":\"ciin\",\"emailAddr\":[\"{{join(split(42.`users to add`; newline); \"\"\",\"\"\")}}\"]}"
    }
    ]
    },
    "metadata": {
    "designer": {
    "x": -851,
    "y": 835,
    "name": "find user"
    },
    "restore": {
    "__IMTCONN__": {
    "label": ""
    },
    "apiVersionUrl": {
    "mode": "chose",
    "label": ""
    },
    "method": {
    "mode": "chose",
    "label": "GET"
    },
    "headers": {
    "mode": "chose",
    "items": [
    "undefined"
    ]
    },
    "qs": {
    "mode": "chose",
    "items": [
    "undefined"
    ]
    }
    },
    "parameters": [
    {
    "name": "__IMTCONN__",
    "type": "account",
    "label": "Connection",
    "required": true,
    "mappable": false
    }
    ],
    "expect": [
    {
    "name": "url",
    "type": "text",
    "label": "URL",
    "required": true,
    "mappable": true
    },
    {
    "name": "apiVersionUrl",
    "type": "select",
    "label": "API Version",
    "mappable": true
    },
    {
    "name": "pathOverride",
    "type": "text",
    "label": "API Path override",
    "mappable": true
    },
    {
    "name": "method",
    "type": "select",
    "label": "Method",
    "required": true,
    "mappable": true,
    "validate": {
    "enum": [
    "GET",
    "POST",
    "PUT",
    "DELETE"
    ]
    }
    },
    {
    "name": "headers",
    "spec": [
    {
    "name": "key",
    "type": "text",
    "label": "Key"
    },
    {
    "name": "value",
    "type": "text",
    "label": "Value"
    }
    ],
    "type": "array",
    "label": "Headers",
    "mappable": true
    },
    {
    "name": "qs",
    "spec": [
    {
    "name": "key",
    "type": "text",
    "label": "Key"
    },
    {
    "name": "value",
    "type": "text",
    "label": "Value"
    }
    ],
    "type": "array",
    "label": "Query String",
    "mappable": true
    },
    {
    "name": "body",
    "type": "any",
    "label": "Body",
    "mappable": true
    }
    ]
    }
    },
    {
    "id": 23,
    "module": "builtin:BasicFeeder",
    "version": 1,
    "parameters": {},
    "mapper": {
    "array": "{{24.body.data}}"
    },
    "metadata": {
    "designer": {
    "x": -700,
    "y": 833,
    "name": "for each user"
    },
    "restore": {
    "array": {
    "mode": "edit"
    }
    },
    "expect": [
    {
    "name": "array",
    "type": "array",
    "spec": [],
    "label": "Array",
    "mode": "edit",
    "mappable": false
    }
    ]
    }
    },
    {
    "id": 37,
    "module": "util:SetVariable2",
    "version": 1,
    "parameters": {},
    "mapper": {
    "name": "usergroup",
    "scope": "roundtrip",
    "value": "{\n \"groupID\":\"{{42.`groupID to add to`}}\",\n \"isOwner\": false,\n \"userID\":\"{{23.ID}}\"\n}"
    },
    "metadata": {
    "designer": {
    "x": -558,
    "y": 834,
    "name": "create userGroup"
    },
    "restore": {
    "scope": {
    "label": "One cycle"
    }
    },
    "expect": [
    {
    "name": "name",
    "label": "Variable name",
    "type": "text",
    "required": true,
    "mappable": false
    },
    {
    "name": "scope",
    "label": "Variable lifetime",
    "type": "select",
    "required": true,
    "mappable": false,
    "validate": {
    "enum": [
    "roundtrip",
    "execution"
    ]
    }
    },
    {
    "name": "value",
    "label": "Variable value",
    "type": "any",
    "mappable": false
    }
    ],
    "interface": [
    {
    "name": "usergroup",
    "label": "usergroup",
    "type": "any"
    }
    ]
    }
    },
    {
    "id": 39,
    "module": "builtin:BasicAggregator",
    "version": 1,
    "parameters": {
    "feeder": 23
    },
    "mapper": {
    "usergroup": "{{37.usergroup}}"
    },
    "metadata": {
    "designer": {
    "x": -419,
    "y": 833,
    "name": "collect userGroups"
    },
    "restore": {
    "feeder": {
    "label": "Iterator [23]"
    },
    "target": {
    "label": "Custom"
    },
    "mapper": {
    "label": [
    null
    ]
    }
    }
    }
    },
    {
    "id": 38,
    "module": "workfront-workfront:custom",
    "version": 2,
    "parameters": {
    "__IMTCONN__": null
    },
    "mapper": {
    "url": "group/{{42.`groupID to add to`}}",
    "method": "PUT",
    "headers": [
    {
    "key": "Content-Type",
    "value": "application/json"
    }
    ],
    "body": "{\n\"userGroups\":[{{join(map(39.array; \"usergroup\"); \",\")}}]\n}"
    },
    "metadata": {
    "designer": {
    "x": -253,
    "y": 832,
    "name": "update the group"
    },
    "restore": {
    "__IMTCONN__": {
    "label": ""
    },
    "apiVersionUrl": {
    "mode": "chose",
    "label": ""
    },
    "method": {
    "mode": "chose",
    "label": "PUT"
    },
    "headers": {
    "mode": "chose",
    "items": [
    "undefined"
    ]
    },
    "qs": {
    "mode": "chose",
    "items": []
    }
    },
    "parameters": [
    {
    "name": "__IMTCONN__",
    "type": "account",
    "label": "Connection",
    "required": true,
    "mappable": false
    }
    ],
    "expect": [
    {
    "name": "url",
    "type": "text",
    "label": "URL",
    "required": true,
    "mappable": true
    },
    {
    "name": "apiVersionUrl",
    "type": "select",
    "label": "API Version",
    "mappable": true
    },
    {
    "name": "pathOverride",
    "type": "text",
    "label": "API Path override",
    "mappable": true
    },
    {
    "name": "method",
    "type": "select",
    "label": "Method",
    "required": true,
    "mappable": true,
    "validate": {
    "enum": [
    "GET",
    "POST",
    "PUT",
    "DELETE"
    ]
    }
    },
    {
    "name": "headers",
    "spec": [
    {
    "name": "key",
    "type": "text",
    "label": "Key"
    },
    {
    "name": "value",
    "type": "text",
    "label": "Value"
    }
    ],
    "type": "array",
    "label": "Headers",
    "mappable": true
    },
    {
    "name": "qs",
    "spec": [
    {
    "name": "key",
    "type": "text",
    "label": "Key"
    },
    {
    "name": "value",
    "type": "text",
    "label": "Value"
    }
    ],
    "type": "array",
    "label": "Query String",
    "mappable": true
    },
    {
    "name": "body",
    "type": "any",
    "label": "Body",
    "mappable": true
    }
    ]
    }
    }
    ]
    }
    ],
    "metadata": {
    "version": 1
    }
    }

     

    Translate
    ChrisStephens
    Community Advisor
    Community Advisor
    Nov 19, 2026 10:04 PM UTC

    You should be able to just make a PUT call to the user with {“userGroups”: [{“groupID”: “1”},{“groupID”: “2}]}. Just make sure the first group in the array is the home group.

    Translate