cancel
Showing results for 
Search instead for 
Did you mean: 

Delete collaborators

Former Member
0 Kudos

Hi,

I am trying to delete certain collaborators from an agreement which get defauted from the masteragreement. I am trying to do the delete in the create event, but at the time this event is triggered , it looks like only the owner is assigned. I chose create event so that it gets deleted initially and if it is added by the owner, it can still be kept.  The following script works in the validate event. Any help to resolve this requirement is appreciated.

collabcol = doc.getCollaborators();

Logger.info(logMsg.setLogMessage("Size1"+collabcol.size()));

Iterator iter = collabcol.iterator();

while (iter.hasNext())

{

item = iter.next();

collabname = item.getDisplayName();

Logger.info(logMsg.setLogMessage("Collab"+collabname));

if (collabname.equals( "IT Core Systems"))

{

iter.remove();

}

Thanks,

Rani

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rani,

I understand you requirement is to delete/remove some collaborators when you create new document. Here you did not mention your clear requirement that all the time you create new doc or in any specific situation.

If you want to remove specific collaborator permanently you can go to setup->document setup->Document security template. In this location you select for which document you want to remove collaborator and remove it from here.

Or if you want to remove some collaborator for any specific doc type also can be one in above location.

So i feel it is not require to write a custom script to achieve this. Please let me know if you have any question.

Hope this helps you.

Regards,

Gurvi.

Former Member
0 Kudos

Thanks Gurvi.

Our set up is as follows:

Our master agreement has a number of groups  as collaborators  since the master agreement is shared between different groups.. So we have defaulted groups as well as users add additional groups and users when they create a MA as well.

But when an agreement is created from the master agreement, we dont want all these different groups and users to from the master agreement to be copied down to the agreement. We only want certain mandatory groups  (for eg. A/c Payables, Legal) and the owners group to come over. The rest needs to be deleted. The user though has the choice to add other groups  if needed.

If  this can be done through configuration, that will be great. If all the groups an be deleted when an agreement is created, that also is fine since then I can add the manadatory and owners group through a script. But the issue is at the create event, only the owner is present when I look up the collection.

Any idea, suggestion or solution would be really helpful.

Thanks,

Rani