I've been trying to set up a list in which people in different departments in our company can create and edit their own items, read items from their own department, but not see items from another department. I have tried to achieve this by using folders with specific permissions. I thought I had it working, as people can create items, yet when they try to edit them, they get an access denied error. This is how I set the list up:
- Created a custom list. Stopped inheriting permissions. Turned on "Create items and edit items that were created by the user" in advanced settings.
- Created 2 sharepoint groups "IT" and "HR" each with the respective AD group as a member.
- Gave these 2 groups read access to the list.
- Created 2 folders called "IT" and "HR". Stopped inheriting permissions for these folders, and removed all existing permissions.
- Gave Contribute and Read permissions for IT group to IT folder and the same for HR.
- Created custom edit, create and view forms to manage the items.
- Added a custom URL to the navigation menu to create items directly in the IT folder, and used Audience Targeting to show this link to IT people only. Did the same for the HR group.
Now, this all seems to work fine for creating and viewing items. After checking the "Show all items without folders" setting in the views, people don't see the folders, but just the items they have access too. When they click the create link, it goes to the custom "new" form, where they can create an item which is automatically placed into the correct folder so that other people in the correct group can see them too. This all works fine. However, when the owner clicks the edit link they get an access denied error. The funny thing is, only the owner gets the edit link ... other users who can only read (because they didn't create the item) don't get this link. So the system seems to understand who should have edit rights.
Does anyone know what might be going on?