views:

290

answers:

1

Hello.

Can i program custom base permission level? There are many available in SPBasePermissions like

UseRemoteAPIs   Use SOAP, WebDAV, or Microsoft Office SharePoint Designer 2007 interfaces to access the Web site. 
ViewFormPages   View forms, views, and application pages, and enumerate lists. 
ViewListItems   View items in lists, documents in document libraries, and view Web discussion comments.

However i want to make a custom one, something like:

EditItemsAssignedToMe + ViewItemsAssignedToMe + view/edit items i created.

Still finding my way out to allow users view and edit items created by them or assigned to them.

+4  A: 

OOTB you don't have the fine-grained control and can only assign a certain set of permissions as defined on technet and this blog article.

However programmatically you can create a new SPRoleDefinition and assign it the appropriate permissions based on the SPBasePermissions enumeration as per this blog article. You might also want to read this short guide on the basics of SPBasePermissions.

If you want to go even further though and emulate the OOTB behaviour with your own custom permission set try Implementing Custom Security Rights in SharePoint.

mundeep
Yep, well, that's what i wanted to know. Custom Permission set.
Janis Veinbergs