cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting Collaborators to add users in Collaborators section in MA

Former Member
0 Kudos

Hi Experts,

We are in Sourcing 10.0.

We have a business requirement, where collaborators should not be allowed to add any users in Collaborator section in MA.

Can anyone please help on how we can achieve this.

Any leads would be of great help!!

Regards,

Geetika

Accepted Solutions (1)

Accepted Solutions (1)

former_member207877
Active Participant
0 Kudos

Hello Geetika,

lock the collaborators collection using script for certain roles.  you can use below script.

userEmail = session.getAccount().getEmail();

collabs = doc.getCollaborators();

iter = collabs.iterator();

while (iter.hasNext())

{

member = iter.next();

memberEmail = member.getCollaboratorEmail();

memberRole=member.getCollaboratorRole().getDisplayName();

if(userEmail.equalsIgnoreCase(memberEmail) && !memberRole.equalsIgnoreCase("Owner")){

IapiDocumentLockManager.lockField(session,doc,"COLLABORATORS");

}

Regards,

Raj

Former Member
0 Kudos

Hi Raj,

Thank you so much for your help!!

Regards,

Geetika

Answers (0)