I have some items in my library and I want to get a profile and an email of a person who last edited the item. I use SPDataQuery and ask for "Editor" field. I am getting the results in such format 12312#System User. What is this structure? How can I use
it to get a user profile and his email?
I am using the following code:
UserProfileManager upm = new UserProfileManager(context);
No need to get user from user profile service if you want to get the details at item level. AS you have already asked the same question in different thread and somebody already replied with sample code (that code can help you).