Question

How can I check if current user has roles for editing, creating an item in a list in Sequential Workflow ?

Was it helpful?

Solution 2

To check if current user has permissions on item, folder, list or site use DoesUserHavePermission method

OTHER TIPS

I guess you need to implement onWorkflowActivated event (http://msdn.microsoft.com/en-us/library/gg265727.aspx )

To get permission on item level for current user u need:

SPRoleDefinitionBindingCollection usersRoles = mysplistitem.AllRolesForCurrentUser;

see below link for more info; http://sharepointmalaya.blogspot.com.au/2009/07/validate-user-base-permissions-before.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top