hi all!
i have to get the username of a last user that submitted the browser enabled form,
check and forbid if he tries to do it again
GetUserProfileByName is working in InfoPath preview (during the test) and it returns the correct user,
but in browser it returns name of the Sharepoint service account
when form is submitted, in library in last modifed field - there is a correct name of a submitter
any suggestions what to check and how to fix it?
i tried to retrieve user profile on form load, then query for data on button click
but the outcome is same - service account instead of logged user
thx!