<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Company ID field not available for 'user' object in FreeMarker in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/company-id-field-not-available-for-user-object-in-freemarker/m-p/309841#M262971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use user information in a Free Marker Template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;b&amp;gt;Id:&amp;lt;/b&amp;gt; ${user.id}&lt;BR /&gt;&amp;nbsp; &amp;lt;b&amp;gt;Job Title :&amp;lt;/b&amp;gt; ${user.jobTitle}&lt;BR /&gt;&amp;nbsp; &amp;lt;b&amp;gt;Location :&amp;lt;/b&amp;gt; ${user.location}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;works fine in my template page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As an admin i create new users on repository webapp ( not share ) and there is a field "Company ID" which i fill-out for every user. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But as per documentation on &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/references/APISurf-user.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/references/APISurf-user.html&lt;/A&gt;&lt;SPAN&gt; there is no way to access companyid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am i missing something here ? or is there a way to access that field of user profile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using alfresco 4.2.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sumit Purohit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Mar 2014 19:04:03 GMT</pubDate>
    <dc:creator>purohitsumit</dc:creator>
    <dc:date>2014-03-13T19:04:03Z</dc:date>
    <item>
      <title>Company ID field not available for 'user' object in FreeMarker</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/company-id-field-not-available-for-user-object-in-freemarker/m-p/309841#M262971</link>
      <description>Hi,I am trying to use user information in a Free Marker Template.&amp;nbsp; &amp;lt;b&amp;gt;Id:&amp;lt;/b&amp;gt; ${user.id}&amp;nbsp; &amp;lt;b&amp;gt;Job Title :&amp;lt;/b&amp;gt; ${user.jobTitle}&amp;nbsp; &amp;lt;b&amp;gt;Location :&amp;lt;/b&amp;gt; ${user.location}‍‍‍‍‍works fine in my template page.As an admin i create new users on repository webapp ( not share ) a</description>
      <pubDate>Thu, 13 Mar 2014 19:04:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/company-id-field-not-available-for-user-object-in-freemarker/m-p/309841#M262971</guid>
      <dc:creator>purohitsumit</dc:creator>
      <dc:date>2014-03-13T19:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Company ID field not available for 'user' object in FreeMarker</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/company-id-field-not-available-for-user-object-in-freemarker/m-p/309842#M262972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you are looking for "organization" which is there in list.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:13:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/company-id-field-not-available-for-user-object-in-freemarker/m-p/309842#M262972</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-03-14T07:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Company ID field not available for 'user' object in FreeMarker</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/company-id-field-not-available-for-user-object-in-freemarker/m-p/309843#M262973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"organization" is a different field, which i agree is available. If we look at alfresco repo's user profile page, both "organization" and "company id" are there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 17:17:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/company-id-field-not-available-for-user-object-in-freemarker/m-p/309843#M262973</guid>
      <dc:creator>purohitsumit</dc:creator>
      <dc:date>2014-03-14T17:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Company ID field not available for 'user' object in FreeMarker</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/company-id-field-not-available-for-user-object-in-freemarker/m-p/309844#M262974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are two type of values which are available in alfresco for person object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CompanyId and OrganizationId&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get both using below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is for Company ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}organizationId" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}organizationId&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; : Returns value of company ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;equivalent Javascript code : person.properties["cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rganizationID"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is for organization ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}organization" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}organization&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Returns OrganizationId ID .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;equivalent Javascript code : person.properties["cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rganization"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 07:45:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/company-id-field-not-available-for-user-object-in-freemarker/m-p/309844#M262974</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2015-07-01T07:45:49Z</dc:date>
    </item>
  </channel>
</rss>

