With the help of event handler i am getting the id of the user who have finished the Workflow activity.
For getting the Id i am writing like:
foreach(var user in activity.Performers)
userId=user.Title.ToString();
Now, similarly how can i get the members of the group(their id's) to which the user belongs.