on 2016 Feb 24 12:29 AM
Hi Experts,
I am facing an issue while publishing child agreement to ECC. Below is the details of the scenario:
User A created a master agreement - ABC.
User A added User B as collaborator (Read/Write).
User B imported line items and created child agreements in master agreement ABC.
User A tries to publish the child agreement of master agreement ABC.
User A faces an error "You cannot view the document because you do not have sufficient permissions. Contact the document owner to request access."
There is a script written on toolbar context to publish child agreement to ECC. Any idea why user A is facing this error?
Hi Ankit,
Is user A collaborator on the child agreement?
Regards,
Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bogdan... Your question gave the solution to the issue. The User A was not the collaborator in the child agreement. I guess, that is the reason User A was not able to publish the contracts.
Is there any way we can add user A as collaborator in child agreement as soon as user B creates child agreement? Because here the child agreements are not to be edited. Do we have to add this functionality in the script or is there any other way?
Aha, I can assume now that the toolbar script for publishing is on the parent (not the child). And userA is triggering the publish action from the parent.
Then it makes sense, if userA is triggering the publish action he needs to be a collaborator on the child as well.
Adding user A as collaborator on the child will depend on how the child MA is created. If the child is generated via the standard process you should handle this in a VALIDATE script.
You will not be able to do it from the script that is executed by UserA. This is because userA, executing the script, will not have any permission to change the child (eg add himself as collaborator).
Bogdan
You are right Bogdan. There are 2 separate scripts for creating and publishing the child agreements.
So if user B is creating child agreement by triggering the create child script, user A is not added as collaborator in child agreement and thus user A is not able to publish the contract (even when he is the owner of the parent agreement).
Thanks for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.