error in Infopath forms auto populate current user details

Leili vazietan 106 Reputation points
2021-03-07T16:56:56.167+00:00

hi

h designed the form in infopath that auto populate current display name and when i test in in preview it works properly

i did it from this link : https://social.technet.microsoft.com/Forums/azure/en-US/50a74abc-475a-45df-986f-37f2534b3efd/infopath-forms-auto-populate-current-user-details?forum=onlineservicessharepoint

but when i open in in my site have an error and when confirm it the for dosen't show the display name

error:an error occurred querying a data source 5566

pls help me 75161-2021-03-07-2.png

Microsoft 365 and Office SharePoint Server For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Chelsea Wu 6,341 Reputation points Moderator
    2021-03-08T07:29:40.387+00:00

    What is the version of SharePoint you are currently using?
    If you are on SharePoint Server, please check as following to narrow down this issue:

    1. The error suggests that your permission may not be sufficient for the GetUserCollectionFromGroup method to enumerate SharePoint groups and users, and so the method fails, referring to this document: "Access Denied" error (Event ID 5566) when you open a form in the browser. Make sure the account you use to publish the form is a member of the Farm Administrators group via Central Administration > Security > Manage the farm administrators group.
      Or use the workaround mentioned in the document to change the permissions of the SharePoint groups that the form enumerates.
    2. Disable Loop Back Check on all SharePoint servers.
    3. Referring to another article here, this error is expected when making a Web service call in SharePoint configured with Claims Based Authentication.
      You can follow the instructions and see how to avoid this error.

    *Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link. *


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    **Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. **


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.