Hi All,
I'm encountering an error with an InfoPath form looking up the WorkEmail of a user via the GetUserProfileByName service. Using the People Picker, a user finds a user they want to look up. By pressing a Query button, the system sets the Query Field (AccountName) for the service to the AccountId field of the People Picker. I then Query the service and extract the WorkEmail value for the user ID. This seems to work fine for me and people in my immediate group (my colleagues and manager). But when I try and run it for anyone outside my group, I get the following error:
The query cannot be run for the following DataObject: GetUserProfileByName
InfoPath cannot run the specified query.
The SOAP response indicates that an error occurred:
A user with the account name i:0#.w|halamerica\hbar448 could not be found. ---> An error was encountered while retrieving the user profile.
UserCannotBeFoundAn error was encountered while retrieving the user profile.
Is the service somehow limited to accessing this information only to one's group? It seems strange this would work for people in my immediate group, but not outside it.