locked
How Can i get the user profile detail in Infopath forms in SharePont online. RRS feed

  • Question

  • Hi All,

    I am working on InfoPath UserProfileService for retrieving user details on the form using GetUserProfileByName.udcx data connection.

    But as I observed UserProfileService do not support in SharePoint online(Office 365). Is there any workaround for the same?

    Goal: Get logged in user details on InfoPath form on form load event

    Background: SharePoint Migration from 2010 to SharePoint online

    I have tried following workarounds

    • Used SharePoint internal list i.e., User Information List, but it did not help in retrieving the data plus it do not contain all the details like for example, ‘manager details’
    • Inserted on premise URL(SharePoint 2013) in GetUserProfileByName.udcx and fetched data from on premise UserProfileService but still do not succeed
    • Used URL https://siteadmin.sharepoint.com/_vti_bin/userprofileservice.asmx  in GetUserProfileByname.udcx which locates admin site for SharePoint online.

    I have tried using REST API but it's show error

    A query to retrieve form data cannot be completed because this action would violate cross-domain restrictions. 

    And used AppId in udcx which was created in secure store on SharePoint admin site(for online)

    Eventually attempts did not solve the error. If anyone can share workaround, the help would be appreciated. 

    Regards,

    Deepak Chauhan


    SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI Design

    Monday, July 4, 2016 11:21 AM

Answers

All replies