Expand my Community achievements bar.

Wondering how Workfront Proof works? Join our AMA on May 8th and ask our Community experts!
SOLVED

Transferring ownership of Documents when user is deqactivated

Avatar

Level 4

How is everyone handling the transfer of document ownership when a user gets deactivated?

 

When we deactivate users it deactivates their Workfront user account and removes the Workfront product from their console account, but if they own proof documents it will not deactivate their proof account. We need these proof accounts deactivated so they are not able to be added to future proofs.

 

We are trying to build a Fusion scenario that would identify if the user owns proofs before deactivating and if so transfer the ownership to the versions creator if different than the owner, or the owners manager. 

 

Has anyone developed this that they can share or have another way to handle this?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Maybe this can help. (JSON attached)

It's a bit tedious because the Proof emails sometimes have that "+98765" added, and multiple users can show the same email (I see that in our Proof)

 

Edge cases to consider - the sample is a happy-day scenario

  • what if the person doesn't have an assigned manager?
  • what if the manager email is not in proof?
  • what if the uploader was deactivated prior?

Proof API is limited so I am using getProofsByRecipientEmail - proofAPI docs helpfully state to pull this in batches but I can't seem to find how to get the COUNT ...
 - So there are some caveats, see what works, and take a look at the proofAPI documentation, perhaps there are calls that suit your situation better. 

SveniX_0-1743177839218.png

 

 

View solution in original post

2 Replies

Avatar

Community Advisor

Hey @Tracy_Parmeter 

This is on the list of requested templates in Fusion - go like it here! 

 

 

Avatar

Correct answer by
Community Advisor

Maybe this can help. (JSON attached)

It's a bit tedious because the Proof emails sometimes have that "+98765" added, and multiple users can show the same email (I see that in our Proof)

 

Edge cases to consider - the sample is a happy-day scenario

  • what if the person doesn't have an assigned manager?
  • what if the manager email is not in proof?
  • what if the uploader was deactivated prior?

Proof API is limited so I am using getProofsByRecipientEmail - proofAPI docs helpfully state to pull this in batches but I can't seem to find how to get the COUNT ...
 - So there are some caveats, see what works, and take a look at the proofAPI documentation, perhaps there are calls that suit your situation better. 

SveniX_0-1743177839218.png