Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Different Security between web.Lists and web.Folders?

  Asked By: Demarco    Date: Aug 20    Category: Sharepoint    Views: 2266

My web part tries to get all files from a document library. When I use
the following code

SPFolder folder = web.Folders["Documents"];

When an anonymous user browses the web page containing the web part, a
login prompt is displayed.

However when I use the following code:

SPList list = web.Lists["Documents"];

It works for Anonymous users and won't display any login prompt.

I am wondering what the difference between Folders and Lists in the
sense of Security? Thanks!

Here are the security settings for anonymous

Anonymous users can access:

Entire Web site

Lists and libraries

Nothing

Here are the security settings for Limited Access

List Permissions

Manage Lists - Create and delete lists, add or remove columns in a
list, and add or remove public views of a list.


Override Check Out - Discard or check in a document which is checked
out to another user.


Add Items - Add items to lists, add documents to document libraries,
and add Web discussion comments.


Edit Items - Edit items in lists, edit documents in document
libraries, edit Web discussion comments in documents, and customize Web
Part Pages in document libraries.


Delete Items - Delete items from a list, documents from a document
library, and Web discussion comments in documents.


View Items - View items in lists, documents in document libraries, and
view Web discussion comments.

Approve Items - Approve a minor version of a list item or document.


Open Items - View the source of documents with server-side file
handlers.

View Versions - View past versions of a list item or document.

Delete Versions - Delete past versions of a list item or document.

Create Alerts - Create e-mail alerts.

View Application Pages - View forms, views, and application pages.
Enumerate lists.


Site Permissions

Manage Permissions - Create and change permission levels on the Web
site and assign permissions to users and groups.


View Usage Data - View reports on Web site usage.

Create Subsites - Create subsites such as team sites, Meeting
Workspace sites, and Document Workspace sites.


Manage Web Site - Grants the ability to perform all administration
tasks for the Web site as well as manage content.


Add and Customize Pages - Add, change, or delete HTML pages or Web
Part Pages, and edit the Web site using a Windows SharePoint
Services-compatible editor.

Apply Themes and Borders - Apply a theme or borders to the entire Web
site.


Apply Style Sheets - Apply a style sheet (.CSS file) to the Web site.


Create Groups - Create a group of users that can be used anywhere
within the site collection.


Browse Directories - Enumerate files and folders in a Web site using
SharePoint Designer and Web DAV interfaces.

Use Self-Service Site Creation - Create a Web site using Self-Service
Site Creation.

View Pages - View pages in a Web site.

Enumerate Permissions - Enumerate permissions on the Web site, list,
folder, document, or list item.

Browse User Information - View information about users of the Web
site.


Manage Alerts - Manage alerts for all users of the Web site.

Use Remote Interfaces - Use SOAP, Web DAV, or SharePoint Designer
interfaces to access the Web site.


Use Client Integration Features - Use features which launch client
applications. Without this permission, users will have to work on
documents locally and upload their changes.

Open - Allows users to open a Web site, list, or folder in order to
access items inside that container.

Edit Personal User Information - Allows a user to change his or her
own user information, such as adding a picture.


Personal Permissions
Manage Personal Views - Create, change, and delete personal views of
lists.

Add/Remove Personal Web Parts - Add or remove personal Web Parts on a
Web Part Page.

Update Personal Web Parts - Update Web Parts to display personalized
information.

Privileged/Confidential information may be contained in this message. The
information contained in this message is intended only for the use of the
recipient(s) named above and their co-workers who are working on the same
matter. The recipient of this information is prohibited from disclosing the
information to any other party unless this disclosure has been authorized in
advance.

If you are not intended recipient of this message or any agent responsible for
delivery of the message to the intended recipient, you are hereby notified that
any disclosure, copying, distribution or action taken in reliance on the
contents of this message is strictly prohibited. You should immediately destroy
this message and kindly notify the sender by reply E-Mail. Please advise
immediately if you or your employer does not consent to Internet E-Mail for
messages of this kind. Opinions, conclusions and other information in this
message that do not relate to the official business of the firm shall be
understood as neither given nor endorsed by it.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Keenan Whitehead     Answered On: Aug 20

Looks like the mailing list  removed the html code.

I have given Anonymous users  access to "Entire Web Site" and the
following permissions have been checked for "Limited Access"

Browse user  Information - View information about users of the Web
site.

Use Client Integration Features - Use features which launch client
applications. Without this permission, users will have to work on
documents locally and upload their changes.

Open - Allows users to open a Web site, list, or folder  in order to
access items inside that container.

 
Didn't find what you were looking for? Find more on Different Security between web.Lists and web.Folders? Or get search suggestion and latest updates.




Tagged: