.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

Customized list views and permissions to specific group users

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :SharePoint
Hi, I have created a custom list with 20 field/columns in wss3.0. I had four user groups(group1, group2,....3.....4) in my site collection with various levels of permissions. I have created four custom views (Group 1 view, Group2 view,...etc)in my list. Each view contains only certain fields out of 20. For example group 1 view contains field 1, 5, 7,10 and 13 of every item in my list.  My requirement is that when a user login, who is a member of group1. he should be able to view only Group1 view fields. He should not able to view other field/columns. I tried creating another field/column called as restricted users and wrote group names in that. In the View edit page I selected " show item when the column 'restricted users' is equl to [Me]. But I did not get it. Kindly help it out any one either programmatically or UI based. Thanks   

View Complete Post

More Related Resource Links

Getting list of users reporting from specific Manager from Active Directory


Dear All,

I am have requirement like displaying all the user information reporting to specific manager from Active Directory.

Please help me regarding this.



List View Permissions and Views for Web Parts

My fellow developers and I are going in circles a bit with our new Sharepoint 2010.  This question probably has several different answers.   I have a list of grades and comments that our Team Leaders want to create and save on Sharepoint.  When saved, the user who was graded should be able to see their own grades.  Its a pretty simple requirement and I'm 90% of the way there.   I created a list with the required fields, and two separate views.  The first view filters the list by the user's name so they see on their grades.  The second view shows all grades in a grouped order by the person who assigned the grade.  To make this second view more readable, I added some formatting with Sharepoint Designer 2010.  It looks nice.   Here's where the speed bump occurs.  I create a web parts page for each view.  The page showing only the user grades works as expected.  The other page, however, shows the list in a view that I didn't create.  No matter what view I select from the "Edit Web Part" menu, it always shows this strange view.  If I select the list, it says its current view is "Default".  The second view I created is set as default, but its not the view I see.  If I change the current view from list menu to the second view specifically, it shows up correctly. &n

How to properly configure permissions so users can view, add, edit, and delete list items, but not w

I am trying to figure out how to properly setup security so that it can be configured at the top-level, and then inherited all the way through. Here is what I would like to do: Each user can view, add, edit, and delete list items - but, users cannot modify or delete web part pages. The only way I know how to do this is set Contribute from the top-down, and then go into each Site Pages library and set Read access. The problem is that I have 100 sites, and I was hoping there was a way I could set security at the top, and inherit downward. Rather than having to go into all 100 Site Pages library and set Read access. Is there a way to do this? Thanks in advance.

Setting permissions to Items/Views in a list

I have a list containing 2 FY's data. I need to make one of the FY year's data as read-only. Can i create a view filtering only this data and make only this view as read-only or do i need to edit permissions of individual items of the filtered FY and set it as read-only. Is there any other way of doing this?

Make a list field ediable by a group of users or hidden to everyone else.


I understand how to hide a field, but this hides it for everyone. My team want to hide it for the users and show it for our team. The field we want hidden from other users are Assigned to, Due Date, and Due Date, but we want our team to be able to edit these fields; not the other users. Is it any way to do this? Thanks for the help.



Users dont have permissions to core.css on specific site


I have a sharepoint website where somehow the permissions on it got messed up.  Users with read access can get to the site, but when they get thier the site is messed up.  I can replicate the look by disabling core.css on the site.  I checked and the users do have core.css in the source, but If you try to load it you get access denied.

The masterpage is referencing the core.css file that is relative to the site, not the one in _layouts.

How do I fix this permissions issue, It seems liek the only way to access core.css is through sharepoint designer and in there I cant see a way to fix the permissions.

stsadm to list users in a group


Hi all,

 Does anybody knows how to enumerate users in a Sharepoint 2007 group ? I have a particular case where users cannot be displayed in the UI.

 The closest I found is Enumusers but it lists users of a site collection or subsite.




Assign permissions on specific list types


Dear folks,

I am wondering if it is possible, with SharePoint 2010, to restrict the users permissions so that specific groups of users can only create lists/libraries from a specific template: currently, if a contributor clicks on the create button, he/she can create several types of libraries/lists (document library, form library, picture library, calendar, contacts, etc.); is it possible to restrict this range of choices so that I can have specific users be able to create only from specific list/library templates (e.g. a user that can create only document libraries but not pictures libraries, records libraries, etc.)?

Thanks a lot


List Item is not visible to specific users in a webpart in my portal



There is a webpart which is displaying the items from list.There is another webpart which also display same items as in the above webpart.

Issue: Now the issue I am facing that the list items are not visible to specific users even though it is visible to same users who are in the same group. But this issue I am facing in production environment but not in staging environment.

Your quick help will help us a lot.



Getting list of users under a particular user group id


Given a particular user group id, how can we most quickly retrieve the list of users under that user group id?

Please provide sample code  and/or example links.

Thanks for any help.

Pre-upgrade Checker - Customized List views that will not be upgraded report showing TONS of lists

OK - so, I haven't tried the actual upgrade yet, but I'm definitely concerned about the quantity of lists/pages that are showing up in this section of the report.  It appears that just about every list (and page?) shows up in this report.  I'm talking almost 9000 lines.  I've only just recently taken ownership of the SharePoint farm, but I find it hard to believe that all of these items have been manually customized.  Has anyone seen this before or have any idea as to why I'm seeing this?  Running MOSS SP2...

Active Directory - List group managed by a specific user


Hello every body,

I need to know how I can find which groups of an active directory are managed by a specific user. The idea is to create a WinForm appication where the user enter a name and then, the code chek whicjh group of the AD is managed by the name entered.

Has someone any idea? I jusrt need specification about the Active Directory classes and methods...

Thanks ;-)

Is it possible to authorize users on on specific list items?


I need your help with an authorization probem in my application. Suppose I have 3 users - Peter, Paul and John in my application. Peter is in charge of Europe sales and Paul in charge of North America sales. When they login to the application, only Europe sales figures should be visible to Peter, while Paul can see only North America sales figures. Both of them report to John, who can see sales figures for both North America as well as Europe.

I've been trying this hard, but since I'm just a novice, I've been messing it up. Really sorry if I sound dumb. 

Novice Kid

List all users roles, permissions


is there a system stored proc that will allow me to list all the users for a database and their roles permissions?


If not does some one have a script or something I can use...I am relatively new at this and need it for an auditor ASAP!!



Getting users list reporting to manager from LDAP


Dear All,

I need to get list of users reporting to a particular manager from the Active directory.

In the active directory there is manager property with contains the data in the following way.


Please help me in building the filter condition.

I am using the following

pUserName="Gegore Lid";

strSearch = "(&(objectClass=user)(objectCategory=user)((Manager cn=" + pUserName + "))";

DirectorySearcher dSearcher = new DirectorySearcher(dEntry, strSearch);

            //Account properites to load
            string[] arrPropertiesToLoad = { "displayName", "department", "manager", "sAMAccountName", "EmployeeNumber", "Title" };

          SearchResultCollection sResultColl = dSearcher.FindAll();

 the above code is not returning any result.

Please help me in this.



List Users from Active Directory


When i try to List the users from Active directory, i get this exception.

Error while processing.System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindAll()

The code i used is :

DirectoryEntry de = new DirectoryEntry(_path);DirectorySearcher deSearch = new DirectorySearcher();

deSearch.SearchRoot =de;

deSearch.Filter = "(&(objectClass=user) (cn=" + UserName +"))";

SearchResultCollection results = deSearch.FindAll();

 But the DirectoyEntry method is getting validated if i use the overloaded method : DirectoryEntry(_path, domainAndUsername, password);

Please advice me.

Pulling data from MyProfile page to People & group's list

Hi, Is it possible to pull the data from Profile page, like the email, contact number etc to be displayed in the People & Groups page. Please refer the screenshot for better understanding..

Link to the image: http://img694.imageshack.us/i/pplgrps.png/

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