<?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: get Current logged in user for forms.... in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113500#M79917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;import org.activiti.engine.impl.identity.Authentication;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2014 09:14:54 GMT</pubDate>
    <dc:creator>wishwanath</dc:creator>
    <dc:date>2014-08-19T09:14:54Z</dc:date>
    <item>
      <title>get Current logged in user for forms....</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113494#M79911</link>
      <description>Hi , please help me in: 1. how can i get Current logged-in user for forms? 2. how can i retrieve list of a group in a dropbox?</description>
      <pubDate>Tue, 28 Feb 2012 09:27:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113494#M79911</guid>
      <dc:creator>sojasoja</dc:creator>
      <dc:date>2012-02-28T09:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: get Current logged in user for forms....</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113495#M79912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. Authentication.getAuthenticatedUserId()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. through the identityService.createGroupQuery()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 08:03:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113495#M79912</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-06-04T08:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: get Current logged in user for forms....</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113496#M79913</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;SPAN&gt;i have logged by kermit user &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.impl.identity.Authentication.getAuthenticatedUserId() return null &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;please help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:51:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113496#M79913</guid>
      <dc:creator>abdou2387</dc:creator>
      <dc:date>2014-06-24T09:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: get Current logged in user for forms....</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113497#M79914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Then you need to provide more details. I was assuming this is in Activiti Explorer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, then the authenticated user is set as above. Where are you calling this code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 11:47:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113497#M79914</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-06-27T11:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: get Current logged in user for forms....</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113498#M79915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same error, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i test&amp;nbsp; "System.out.println("logger is:"+ Authentication.getAuthenticatedUserId()); "&amp;nbsp; in a class test (activiti-designer), i get null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or should this work just in explorer when log in ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 13:03:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113498#M79915</guid>
      <dc:creator>bargan</dc:creator>
      <dc:date>2014-07-16T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: get Current logged in user for forms....</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113499#M79916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same issue, but in a custom application, I handle this using Spring aspects, all the interaction with the activiti API is done in a Service Bean, creating a loginAspect before each execution ensures the authentication authenticatedUserId is set,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Aspect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class LoginAspect { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Before("execution(* com.company.WfService.*(..))")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void logBefore(JoinPoint joinPoint){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; log.info("Starting Checking authentification");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //Se registra el usuario&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String wfUserName = Authentication.getAuthenticatedUserId();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String auth =&amp;nbsp; get current logged user….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if ( wfUserName != null &amp;amp;&amp;amp; wfUserName.compareTo(auth.getUsername()) != 0 ){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Authentication.setAuthenticatedUserId(auth.getUsername());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }else if ( wfUserName == null ){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Authentication.setAuthenticatedUserId(auth.getUsername());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 23:35:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113499#M79916</guid>
      <dc:creator>hrobayo</dc:creator>
      <dc:date>2014-07-17T23:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: get Current logged in user for forms....</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113500#M79917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;import org.activiti.engine.impl.identity.Authentication;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 09:14:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113500#M79917</guid>
      <dc:creator>wishwanath</dc:creator>
      <dc:date>2014-08-19T09:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: get Current logged in user for forms....</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113501#M79918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have called Authentication.getAuthenticatedUserId() in activiti explorer module&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 09:18:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-logged-in-user-for-forms/m-p/113501#M79918</guid>
      <dc:creator>abdou2387</dc:creator>
      <dc:date>2015-01-26T09:18:19Z</dc:date>
    </item>
  </channel>
</rss>

