A family of Microsoft on-premises document management and storage systems.
The error indicates that after the in‑place upgrade to SharePoint Server Subscription Edition, InfoPath forms that call SOAP web services (for example, GetUserProfileByName against the User Profile web service) are now receiving HTTP 500 “Attempted to perform an unauthorized operation”. This is an authorization/configuration issue in the upgraded farm, not a content database problem.
Based on the provided information, the following areas must be checked and configured in the Subscription Edition farm for InfoPath forms and their service calls to work:
- InfoPath Forms Services configuration
After upgrade, InfoPath Forms Service is not configured automatically. It must be explicitly configured in Central Administration:- In Central Administration, go to General Application Settings.
- In the InfoPath Forms Services section, select Configure InfoPath Forms Services.
- Ensure that InfoPath Forms Services is configured and that any required settings for browser-enabled forms are enabled.
- If administrator‑deployed form templates or data connection files were used in the old farm, export them from the old farm and import them into the new Subscription Edition farm using
Export-SPInfoPathAdministrationFiles, then update URLs if needed withUpdate-SPInfoPathAdminFileUrl.
- State Service configuration
InfoPath Forms Services requires a State Service connection for browser forms to function correctly:- In Central Administration, under Application Management, select Manage web applications.
- Select the web application hosting the InfoPath forms.
- On the ribbon, select Service Connections.
- In Configure Service Application Associations, ensure the State Service checkbox is selected for this web application.
- If there is no State Service, create one and then associate it.
- User Profile Service and permissions
The failing query isGetUserProfileByName, which depends on the User Profile Service Application and its permissions. After upgrade to Subscription Edition:- Ensure the User Profile Service Application is correctly upgraded and running.
- Verify that the application pool identity and any service accounts used by InfoPath forms have the required permissions on the User Profile Service and its databases.
- If profiles are not accessible due to SQL or service permissions, calls like
GetUserProfileByNamecan fail with authorization errors.
- Re‑deploy or update InfoPath templates and data connections
If the InfoPath forms or their data connections were administrator‑deployed in the previous farm:- Export the .xsn templates and .udcx data connection files from the old farm.
- Import them into the new Subscription Edition farm using
Export-SPInfoPathAdministrationFiles. - If the farm URL changed, run
Update-SPInfoPathAdminFileUrlto update internal URLs used by the templates and connections.
- Consider platform support
InfoPath Forms Service is removed and no longer supported in SharePoint Server Subscription Edition. While existing forms may still function in some scenarios, the platform is not supported going forward. The recommended approach is to plan migration of these forms to alternatives such as Microsoft Power Apps.
In summary, for the current error: ensure InfoPath Forms Services is configured, the web application is associated with a State Service, the User Profile Service and its permissions are correctly configured after upgrade, and any administrator‑deployed InfoPath templates and data connections are re‑imported and updated in the new farm. Then retest the form to confirm that GetUserProfileByName calls succeed.
References: