.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

permissions: How to set intersection of groups to access shared documents

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :SharePoint

Hi all,

I'm wondering if this is possible.  I only want a person to be able to view a certain shared document if they are a member of BOTH groups A and B (the intersection fo the two groups)

If they are a member of ONLY group A OR ONLY group B they won't be able to see it.   They must be members of BOTH groups.

Is this possible?



View Complete Post

More Related Resource Links

Access Control: Understanding Windows File And Registry Permissions


Understanding the ACLs that govern permissions and rights before an operation is allowed to proceed is critical to enhancing security.

John R. Michener

MSDN Magazine November 2008

Hide documents from being access by unauthorized users.


Hi experts,

I would like to know how to hide certain documents (eg. Word, Excel, PPT, PDF) in a document libraries from unauthorized users? I tried implement Target Audience, but it doesn't work. If anyone know, i really appreciate for the guidance.

p/s: If my posting is not relevnt to the thread, please kindly move it to the appropriate places. Thanks!

"Read Only" Access Error when checking in documents from outlook



We are accessing our sharepoint services 3.0 document library through outlook 2007.

We can open the files in word/excel etc, but when we go to check-in the document the application tells us that we only have read access to the document, and cant check the document back in to the server.

It works fine via the browser, the read only problem is only when checking out through outlook.

I have given all users full access and design access to the doc library.

Any help would be greatly appreciated.






Access denied to folder in ASP.NET project either though I have granted all users full permissions !



i have made a very simple file upload app, that i want users to be able to upload images to a folder on my server, well localhost for the time being Stick out tongue

here is the simple upload code...

        protected void ButtonRegisterDetails_Click(object sender, EventArgs e) 
            // display properties of the uploaded file 

Comparing Enum values in a collection - BC42025: Access of shared member, constant member, enum mem


I am upgrading from asp1.1 to 2.0

I use collection classes to sort data (e.g in datagrids etc)


Enum newsFields
End Enum

Public Overloads Sub Sort(ByVal sortField As newsFields, ByVal isAscending As Boolean)
Select Case sortField
Case newsFields.title

How to use metadata for permission to access Documents?

I have document library with 100-200 documents. Not all users are allowed to open all documents. So far I know that user permission can be defined by a document or library level. And permision are granted for user or groups. I wonder if it possible define permissions by metadata level. For example "Personnel department security group" have access to the documents with metadata personnel.    Kenny_I

Clicking on "Shared Documents" gives link to download instead of opening document library

Hi, I hope someone can help! All of a sudden (I don't know if someone has changed something!), whenever anone clicks on a link to open the "shared documents" document library in a specific site within our sharepoint site, instead of opening the document library, it instead gives a download dialog for a zip "AllItems.aspx" as a zip file. Anyone got any iteas what could have gone wrong and how to correct the issue?   Many thanks for any help!

Permissions:disable controls by roles(access pages too)(dynamically :each new role has special grant

HelloI have an application of many pages of consultation and same time I have a module of adding users by roles and creating accounts by role.(the application is ready but i cant manage the roles)the tutorials that i found are very useful to manage roles but its roles fixed before(administrators,supervisors)(http://www.asp.net/security/tutorials/creating-and-managing-roles-vb) if I add a new role (agent) i want to grant to this new role a new access to pages(different access than admin and supervisor) and disable new controlswhy not using checkbox to every new role checking a field related to databaseis it possible?if yes ,how can i begin?Thanks

When linking SP List to Access 2007 "You do not have permissions ..."


When I attempt to link a SP list to an existing Access db (which already has lists linked to the same SP Site), I get the error: "You do not have the necessary permissions to use the '[url given here]' object. Per the KB article at http://support.microsoft.com/kb/924739 it is because "list contains a column name that has more than 64 characters".  but this is not the case.  None of the column have such long names.  Any other ideas?

Perhaps there is a maximum number of columns in the SP list?  I have about 68 fields ... know this is a lot but it's sort of a questionnaire.

--rms www.rmschneider.com

Automatically Set Anonymous access to subsites off with Parent on and permissions inherited

Is it possible to automatically set anonymous access to all newly created sub sites to be off when the Parent site is on and permissions are inherited? I know it is as simple as going into each site and disabling but to prevent users with forgetful minds we would like the default to be off. I have done a lot of research and do not see a solution. Any suggestions would be appreciated. Thank you.

Add a "Shared Documents" type documents browser onto an aspx Application Page?


I have an aspx page for a user to fire off a mail merge. I'd like them to choose a .html file from a document library in Sharepoint, then choose a contact list, and then have it fire off the mail merge.

The mail merge part is done and works from a console application with the .html file location hardcoded, and the contact list hard coded.
What I need is a way to add a documents browser onto the .aspx page. I can't see any obvious control I can drop on to achieve this though.

Ideally I would drop on a <Sharepoint:DocumentsBrowser> control, point it at a given ListId in sharepoint, and at runtime Sharepoint would display a nice shared documents type documents browser. Is this possible?

I wrote a book :) http://www.amazon.com/Microsoft-Visual-Studio-2008-Programming/dp/0071604081

Able to access list despite no permissions for it


Hello guys,

Logged on as the ONLY Site Collection Administrator, I've created a document library and and given access only for the mentioned user.

Then, after logging on with an account that belongs to the Site Owner's group, correctly I'm unable to acess the content on that list.

On the other hand, logging on with the Administrator account, wich was the one used to create the site, but is no longer on the Site Collection Administrator, I'm able to acess the content on that list despite only havving the Actions menu and being unable to create or delete content on that list. What I really need is to get the "Access Denied" message I got when acessing with the Site Owner's group account.

What can I do?

Shared Data Sources permissions issue


I have created a Shared Data source in my Report Manager, granted my network account all the permissions to the connection. I build my report in Report Builder 2.0 (I have access to the necessary tables and views etc). I save my report to the report server. I can run the report through Report Manager, however, I can't run the report through Report Builder 2.0. I get the error:

The permissions granted to user 'domain\myusername' are insufficient for performing this operation. (rsAccessDenied)

The odd thing is, if I create a report with an embedded data source, I can run it through Report Builder 2.0 until I save it to the server. Then I can only run it on the server (same as the Shared Data source), and not through Report Builder 2.0

Anyone have any ideas?

Copying permissions from one user to another user without creating any groups



I want to copy the permissions of a user and to another user. I know i can do it by creating a group with required permissions and adding the users will do it. But i dont want to create a group. Is there a way to copy the permissions of a user to another user directly?

Visit SharePoint User group - India

How to get the permissions of a user or group that has "Limited Access" to a site



For a user or group that has "Limited Access" to a site, I'd like to be able to find all of the libraries, documents, etc that that user or group has been given permissions to.  I believe that I could accomplish this by iterating over all of the lists of the site, and then over all of the list items of each list, and checking if, for that list or list item, inheritance is broken and that user or group has been granted access.  However, I am hoping there is a cleaner, quicker alternative in which I don't have to iterate over all of the site content.

If that's not possible, I may be able to accomplish mostly what I need if I could find all of the site content which has unique permissions (and then simply iterate over that content to see if the user or group has been given permissions).

Any advice is greatly appreciated.




how can i do user privileges and permissions in access ?


Hello All , 

i'm working in project with access 

and i want to make privileges and permissions to users 

can i do that in access like in SQL Server or anyone has another way to do that ?


Kareem Naguib

Sharepoint 2010 Error "You do not have permissions to access a database"



When I click a button in a form (designed by Infopath 2010,custom code included,full trust security,deployed and activated by our sharepoint admin)

An error pops out saying:

"You do not have permissions to access a database that contains data required for this form to function correctly.
An entry has been added to the Windows event log of the server.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Log ID:5566

Correlation ID:9161ac7c-7b8f-4164-907a-14426c54b24f"


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend