0
votes
2answers
54 views

creating group programmatically

I'm trying to create a new group by event receiver feature with this code, but when I deploy it nothing changes public static void CreateSubSiteGroup(SPWeb web, string groupName, string ...
0
votes
0answers
76 views

SPD13 Workflow - Only site admin can start it

I've put together a mildly complex workflow that is supposed to be able to be started by the average user making a change to a list item. However, my admin account seems to be the only one that can ...
0
votes
1answer
366 views

(Solved) How to create an event receiver for RoleAssignments on file in sharepoint 2013

I'm trying for like 5 days to achieve this event and i got to this but still not even close to what i want. I need to change permissions on file added in library like: user which added file to have ...
0
votes
0answers
115 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
37 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
1k 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
470 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
673 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
2k 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
63 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 ...
8
votes
4answers
8k 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 ...