I am trying to add newly created groups to the 'Other Groups' field in the user profiles for 350+ users. I have not been able to find the correct API call or Workfront module to do this. Could someone help me get started with this please?
Note: I'm not trying to replace/delete the existing groups in the other groups, just want to add the new ones.
Example:
ID | Add to Other Groups |
User1 | CS-SE |
User2 | CS-SE |
User3 | CS-TS |
User4 | CS-LSA |
User5 | CS-SE |
User6 | CS-LSA |
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
{
"userGroups":[
"groupID": "group ID 1"
],[
"groupID": "group ID 2"
]
}
Views
Replies
Total Likes
{
"userGroups":[
"groupID": "group ID 1"
],[
"groupID": "group ID 2"
]
}
Views
Replies
Total Likes
Thanks @ChrisStephens - I was able to merge the arrays. Could you help me with step 4 please? I'm using a PUT call, but I'm not confident if I'm doing it right. I shared a screenshot for the reference below.
Step 3: Merge successful
Step 4: PUT call, I'm obtaining "4.ID" (user id) from Workfront search module.
Views
Replies
Total Likes
That's not correct.
You need a create JSON module, and use the JSON string from my previous comment to make the structure, then map your merged array into the array field, then the JSON string needs to go in the PUT calls body.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies