cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Script - Get User Object by Name

Former Member
0 Likes
199

Hi all,

I am currently trying to get a user object by user name.

We used method getDSSigners() to get all signers for a contract document.

The method only provides user display names. As we need to send a mail to the signer we need to find out the mail address of this user.

I couldn't find a solution til now. Do you have any idea?

Thanks and regards,

Özlem

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Ozlem,

Please try below piece of code:-

list=doc.getDSSigners();

if(list.size()>0)

{

for(i=0;i<list.size();i++){

signer=list.get(i);

NewUserAccountIBeanHomeIfc userHome = (NewUserAccountIBeanHomeIfc) IBeanHomeLocator.lookup(session, NewUserAccountIBeanHomeIfc.sHOME_NAME);

user = userHome.find(signer);

user.getEmail();

}

}

Please let me know if you find any issues.

Regards,

Komal