on 2015 Nov 27 11:16 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.