# How to get email details from single user of actor filter?

**URL:** <https://community.ofelia.com/t/how-to-get-email-details-from-single-user-of-actor-filter/4548>\
**Category:** Q&A\
**Created:** [15 May 2014 06:33 UTC](https://community.ofelia.com/t/how-to-get-email-details-from-single-user-of-actor-filter/4548 "2014-05-15T06:33:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![terrytan1979](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@terrytan1979](https://community.ofelia.com/u/terrytan1979)\
**Post date:** [15 May 2014 06:33 UTC](https://community.ofelia.com/t/how-to-get-email-details-from-single-user-of-actor-filter/4548/1 "2014-05-15T06:33:57Z")

</div>

Dear Sir/Mdm,

I am trying to get email details from single user of actor filter. Tried the code below but doesnt work

A process variable “uid” with datatype “long” is passed to actor filter. Below is my code.

import org.bonitasoft.engine.identity.User;  
import org.bonitasoft.engine.identity.ContactData;  
import org.bonitasoft.engine.bpm.actor.ActorCriterion;

// Get the users attached to the actor member of the human task  
ContactData ContactData = apiAccessor.getIdentityAPI().getEmail(uid.getId (), false);

return ContactData

Regards,  
Terry

---

<div class="post-metadata">

**Author:** ![terrytan1979](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@terrytan1979](https://community.ofelia.com/u/terrytan1979)\
**Post date:** [15 May 2014 06:43 UTC](https://community.ofelia.com/t/how-to-get-email-details-from-single-user-of-actor-filter/4548/2 "2014-05-15T06:43:59Z")

</div>

For those who need this info. I found out the code that works from forum. Code as below

import org.bonitasoft.engine.identity.User;  
import org.bonitasoft.engine.identity.ContactData;  
import org.bonitasoft.engine.bpm.actor.ActorCriterion;

// Get the users attached to the actor member of the human task  
BonitaUsers.getUserProfessionalContactInfo(apiAccessor,taskAssigneeId).email

Terry
