Thursday, February 19, 2009

Infopath - no access to pull ad data?

I was getting the following error during my first try:
The query cannot be run for the following DataObject: GetUserProfileByNameInfoPath cannot run the specified query.The SOAP response indicates that an error occurred on the server:
Server was unable to process request. ---> Attempted to perform an unauthorized operation.

Cause: I was calling the web service against the server root that I didn’t have access to. For example http://server/_vti_bin/userprofileservice.asmx but I didn’t have access to http://server

Solution: Call the web service against the site the InfoPath template lives in, which the current user has access to. For example http://server/sites/sitename/_vti_bin/userprofileservice.asmx

Infopath - pull into the form current user

This worked like a charm, good find and great post.

Still need help and I hope all these posts help someone else like me who is in the process of living inside SharePoint :)

Wednesday, February 18, 2009

Spellcheck does not work

Stumbled across this and found two options as a workaround for now.


1) Give all necessary users the contribute permission level on the top site (“read” is not sufficient). Next, break the inheritance on all lists, libraries and subsites of the top site where you do not want those users to have contributor access.
Which users? You can use all authenticated users, but it is only those users that will be wanting to use the spell check for whom it’s necessary. So de facto that means only contributors or higher.

2) If you think the above solution is quite drastic and requires too much maintenance or could cause a security leak later, you can also

a. On the top site, create a new permission level, e.g. “spellcheck”. Assign only the following site permissions to the permission level:
- browse directories

- view pages

- use remote interfaces

- open

Any other will give more rights, any less will not solve the problem.

b. On the top site again, assign the new permission level to the necessary users. The effect will be that

i. they càn access the topsite but not view any content. They can use it to browse to their subsite

ii. they can use the spellcheck

Populate InfoPath forms with AD Information - NO CODE

This is so easy, Kudos for the post Thank you....

Import AD accounts into InfoPath form...EASY!

This is a perfect way to not use code to obtain information from AD in an InfoPath form.

Kudos to this blog, and its so easy a caveman could do it!