<?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 Re: How to get the current user in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-current-user/m-p/317417#M4418</link>
    <description>&lt;P&gt;In what context do you need the principal? Low-level Java code? Java Operation code? Automation scripting? EL?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 12:02:51 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2017-10-12T12:02:51Z</dc:date>
    <item>
      <title>How to get the current user</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-current-user/m-p/317416#M4417</link>
      <description>&lt;P&gt;Hi.Can anyone tell me how to get the current user logged in Nuxeo..I am using NuxeoPrincipal but it comes null.I take it this way:
@Context
NuxeoPrincipal principal&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 10:22:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-current-user/m-p/317416#M4417</guid>
      <dc:creator>Nuxeo_User</dc:creator>
      <dc:date>2017-10-12T10:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the current user</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-current-user/m-p/317417#M4418</link>
      <description>&lt;P&gt;In what context do you need the principal? Low-level Java code? Java Operation code? Automation scripting? EL?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:02:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-current-user/m-p/317417#M4418</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-10-12T12:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the current user</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-current-user/m-p/317418#M4419</link>
      <description>&lt;P&gt;In java Operation code&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:42:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-current-user/m-p/317418#M4419</guid>
      <dc:creator>Nuxeo_User</dc:creator>
      <dc:date>2017-10-12T12:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the current user</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-current-user/m-p/317419#M4420</link>
      <description>&lt;P&gt;May be this way:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    @Context
    protected OperationContext ctx;

   @OperationMethod
    public DocumentModel run(DocumentModel doc) throws Exception {
        Principal principal = ctx.getPrincipal();
    }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:56:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-current-user/m-p/317419#M4420</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2017-10-12T15:56:17Z</dc:date>
    </item>
  </channel>
</rss>

