Skip to Content
author's profile photo Former Member
Former Member

Delete collaborators


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();"Size1"+collabcol.size()));

Iterator iter = collabcol.iterator();

while (iter.hasNext())


item =;

collabname = item.getDisplayName();"Collab"+collabname));

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






Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2013 at 04:08 AM

    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.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.