<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>LIferay 7.4 Data provider only returning result for Default User.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121579266" />
  <subtitle>LIferay 7.4 Data provider only returning result for Default User.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121579266</id>
  <updated>2026-04-05T14:46:09Z</updated>
  <dc:date>2026-04-05T14:46:09Z</dc:date>
  <entry>
    <title>RE: RE: LIferay 7.4 Data provider only returning result for Default User.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121593467" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121593467</id>
    <updated>2022-12-02T19:28:28Z</updated>
    <published>2022-12-02T13:21:11Z</published>
    <summary type="html">&lt;p&gt;Hi Gregory, I didn't write the data provider and likely can't help
  troubleshoot it. I recommend taking the data provider from there,
  looking at the code to understand what it's trying to do, then, if you
  can't figure out why it's not working, write a separate and detailed
  post about what you've tried and what's going wrong.&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2022-12-02T13:21:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: LIferay 7.4 Data provider only returning result for Default User.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121593474" />
    <author>
      <name>Gregory Artisi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121593474</id>
    <updated>2022-12-01T22:42:08Z</updated>
    <published>2022-12-01T15:26:25Z</published>
    <summary type="html">&lt;p&gt;hello, i tried to install this module but it doesnt work. the data
  provider is visible and configurable but the form does not fill&lt;/p&gt;</summary>
    <dc:creator>Gregory Artisi</dc:creator>
    <dc:date>2022-12-01T15:26:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: LIferay 7.4 Data provider only returning result for Default User.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121590114" />
    <author>
      <name>Minhaj Ahmed</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121590114</id>
    <updated>2022-11-30T16:43:11Z</updated>
    <published>2022-11-30T07:33:55Z</published>
    <summary type="html">&lt;p&gt;Thanks a lot for the reply. I will give it a try. Have a good one.&lt;/p&gt;</summary>
    <dc:creator>Minhaj Ahmed</dc:creator>
    <dc:date>2022-11-30T07:33:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: LIferay 7.4 Data provider only returning result for Default User.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121586623" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121586623</id>
    <updated>2022-11-29T16:11:19Z</updated>
    <published>2022-11-29T01:59:46Z</published>
    <summary type="html">&lt;p&gt;Hi Minhaj, you've run into a known limitation with the REST Data
  Provider. One option is to develop a custom data provider that's a bit
  smarter. I think &lt;a
    href="https://github.com/liferay-forms/custom-data-provider"&gt;this
  one&lt;/a&gt; is actually doing what you want.&lt;/p&gt;
&lt;p&gt;The recommended approach in 7.4 is likely to create an object
  definition with the fields, then use fragments to set up the form
  container and fields. I think there's a new Form Container fragment
  that can help.&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2022-11-29T01:59:46Z</dc:date>
  </entry>
  <entry>
    <title>LIferay 7.4 Data provider only returning result for Default User.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121579265" />
    <author>
      <name>Minhaj Ahmed</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121579265</id>
    <updated>2022-11-25T16:58:58Z</updated>
    <published>2022-11-24T07:56:13Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to use data provider for a form in Liferay 7.4, where the
  Name field will be autofilled by the name of current logged in user. I
  have tried and tested the data providers with these to API&lt;/p&gt;
&lt;p&gt;
  &lt;span class="RFZYhc"&gt;
    &lt;a class="oiM5sf"
      href="http://localhost:8080/o/headless-admin-user/v1.0/my-user-account"
      rel="noopener noreferrer" target="_blank"&gt;http://localhost:8080/o/headless-admin-user/v1.0/my-user-account&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span class="RFZYhc"&gt;
    &lt;a class="oiM5sf"
      href="http://localhost:8080/api/jsonws/user/get-current-user"
      rel="noopener noreferrer" target="_blank"&gt;http://localhost:8080/api/jsonws/user/get-current-user&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="Zc1Emd QIJiHb"&gt;In the data provider creation page USER Name
  and Password field were left blank as we need use the data provider
  for various logged in users.&lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt;Did get some error related to permission issue.&lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt;So... 1) Granted view permission for users
  for the data provider.&lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt;         2) Created service policy with
  enable and default  for com.liferay.portal.kernel.service.UserService.getCurrentUser.&lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt;Now I am able to get the field prepopulated
  through DATA Provider but it is only populating with information from
  the Default account.&lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt;I have tested with adding p_auth as a
  parameter too still same result.&lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt;If I add an account User Name and Password in
  the Data Provider, form is being prepoluated with that user's
  information not the current logged in user's.&lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt;Just wondering if anyone has comme across the
  issue and what could be the possible solution? Thanks for reading.&lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;
&lt;div class="Zc1Emd QIJiHb"&gt; &lt;/div&gt;</summary>
    <dc:creator>Minhaj Ahmed</dc:creator>
    <dc:date>2022-11-24T07:56:13Z</dc:date>
  </entry>
</feed>
