Tagged Questions
0
votes
0answers
54 views
Delete all list permissions and set Author as contributor (Event Receiver)
I wrote an Event Receiver on ItemAdded to automatically create a calendar (Template 106) from a ListItem (Title => Name of calendar). So far so good...
Problem of all is, that I want to delete ALL ...
0
votes
1answer
27 views
A Complex Permission Structure and A Question
Suppose that i have two lists
OFFICES [COLUMNS: OFFICE NAME (Text), OFFICE MANAGER (User), AND OTHER OFFICE DETAILS ETC...]
EMPLOYEES [COLUMNS: EMPLOYEE NAME(Text), EMPLOYEE OFFICE (Lookup), AND ...
1
vote
1answer
588 views
EventReciever to change permissions
I am trying to create an event reciever on a document library that on creation it removes all permissions and gives the author contribute writes. All other users get nothing.
I have the following
...
0
votes
2answers
296 views
deploy a list with specific item-level permissions in ListAdded event receiver method
I have a certain type of custom list I have designed in my 'solution.wsp', that, whenever an instance of it is instantiated, it should have at the outset a specific Item-Level permission.
To further ...
0
votes
1answer
450 views
updating an item in itemupdating on the same list and on the same item
in item updating event of list, i want to update the same item which being updating but i don't want to change and update the fields of the item but the permissions of it.
so i can't use ...
2
votes
2answers
1k views
Preventing users from deleting an item from a task list
I am using the ItemDeleting event receiver to prevent users from deleting items in a Task List.
Currently, my code looks like:
if (properties.ListTitle == "Project Intake Tasks")
{
...
1
vote
1answer
45 views
SharePoint 2010 Restrict List Types by Role
We have a requirement that members of a specific group should only be allowed to create discussion forums while administrators should be able to create any type of list/library.
Any advice on how to ...
6
votes
4answers
5k views
Creating a Site collection programmatically throws exception <nativehr>0x80070005</nativehr>
I'm migrating a SharePoint customization from MOSS 2007 to SharePoint Server 2010 (Win 2008), which creates the Site Collection programmatically. Problem is I'm unable to create the Site Collection ...