After migrating a InfoPath form in SP online, i faced the issue as can't get user profile of SP user. As the rest and soap is not supported in SP online Infopath form, what are the alternatives to solve this issue.
This issue occurs because loopback protection is enabled in the SharePoint Online environment. Loopback protection must be disabled for InfoPath forms to be able to connect to a SharePoint Online web service. This works only when loopback protection is disabled. For security reasons, loopback protection is always enabled in SharePoint Online. This is a known limitation of InfoPath forms in the Office 365 SharePoint Online
As a work around you can create a data connection to the User Information List and get the details of any user.
- Create the Data Connection to the User Information List
- Connect to the User Info List
- Select the User Properties
- In the Form Query the User Info List
- Select the required properties