<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Spuser on Matt Thornton</title>
    <link>http://localhost:1313/tags/spuser/</link>
    <description>Recent content in Spuser on Matt Thornton</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Fri, 28 Sep 2012 10:00:40 +0000</lastBuildDate><atom:link href="http://localhost:1313/tags/spuser/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Get SPUser from Person or Group field</title>
      <link>http://localhost:1313/tech/sharepoint/get-spuser-from-person-or-group-field/</link>
      <pubDate>Fri, 28 Sep 2012 10:00:40 +0000</pubDate>
      
      <guid>http://localhost:1313/tech/sharepoint/get-spuser-from-person-or-group-field/</guid>
      
        <description>&lt;p&gt;On any list, you can define a new column as a type of “Person or Group”. In event handlers or workflow, you may want to grab this value as use it as a real SPUser object, which will expose the name and email address, for example. Unfortunately if you just grab the value of the field, e.g.,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;br /&amp;gt; item[&amp;quot;MyPersonField&amp;quot;]&amp;lt;br /&amp;gt; &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;you&amp;rsquo;ll end up with a string that looks a bit like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;15;#DOMAIN\Matt Thornton&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>