Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Does the QueryEx function check for permissions?

  Asked By: Katharine    Date: Jan 21    Category: Sharepoint    Views: 1782

I'm using the webservice search function in Sharepoint, by calling the
QueryEx function from within my webpage.
In my Sharepoint portal I have two different sites.
The first one is my own so only I am added to the userlist of that
site. To the second site I have added a couple of other users to the
user list as Content Managers.

When these users logon to my website and search, they do not find any
of the documents in my first site but if they search on the name of
that site they get a hit and if they click on the result they get to
my first site and can then reach my documents anyway.
What can I do to restrict these users from using my site?

(I set the credentials of the searchfunction to
System.Net.CredentialCache.DefaultCredentials so the useraccount
should be used during search)



1 Answer Found

Answer #1    Answered By: Rosalyn Craft     Answered On: Jan 21

2 things to check:

1) Do you have anonymous access enabled? If so, you have to disable it.
2) Are these other users  local, domain, or SharePoint administrators? If so,
they will have access to all sites  regardless of their membership.

Didn't find what you were looking for? Find more on Does the QueryEx function check for permissions? Or get search suggestion and latest updates.