Expand my Community achievements bar.

Fusion - Automating OffBoarding of Users from Workfront

Avatar

Level 4

Hello Fusion Community,


I'm currently building a simple scenario that integrates with our offboarding process, and I'm curious if anyone has encountered a method for iterating over a user's existing teams and removing that user from those teams.  For example, I've done this for the user's groups by: 

  1. Getting the user's existing Groups
  2. For each group, leverage the Workfornt Misc Action Module to remove the user from the group

D____D_0-1765382325788.png

That part is easy but it appears that there are no Misc Actions for removing a user from "Other Teams". I can remove the the user's deault team but the issue here is related to the user's Other Teams as it appears the Workfront API, or Team End Point, has no additional actions/functions that could help when you look at, and update, the users "Other Teams".

Question - is there a way to iterate through a user's "Other Teams" and remove them from each team? 

Curious,
DD

1 Reply

Avatar

Level 1

I have done this many times.

 

The secret sauce seems to be to assemble JSON to replace the teams collection when doing a user specific update action. 


Take a look at the teams collection on the user object to see which teams fields are needed.

Remember to remove the home team assignment when replacing the teams collection when the home team is the target team being removed. The home team will be added back into the teams collection when left behind.

Dr Doug