.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

how to change the permissions list items using the workflow?

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :SharePoint
How to change the permissions list items using the workflow? Or how to instull SPDActivities on sharepoint 2010?

View Complete Post

More Related Resource Links

Workflow - Change List Permissions - Time Issues


I have a workflow which starts automatically on a submitted Expense Report InfoPath form. The default permissions on the Expense Report library is 'Contribute' for all users. The workflow then removes those permissions from the submitted Expense Report, and gives the Creator, Users Manager, and an Accounts Payable User 'Full Control' over the item.

My problem is that it takes approximately 5-10 seconds from the point the form is submitted, the workflow is started, and the permissions to change. I realize it's not a huge window of time, but it is enough time for anyone looking in that folder, to notice someone else's Expense Report and click on it.

I tried creating an 'Incoming Expense Reports' library, with a workflow on it that would change the permissions, and then copy the item to the Expense Report library, but the permissions were not copied over to the new item.

Does anyone have any suggestion on how I can reduce the time it takes to change permissions to 1-2 seconds, or any alternative way of solving this?

Help with Workflow Task List Permissions

Here's the scenario:  I have a workflow that is assigned (in parallel) to a series of people.  I've limited each person's permissions within the Workflor Task list to strictly edit by creating a custom permissions level.  So now workflow participants are able to Approve the workflow task, but cannot delete the item.  However, now, I wish to limit the tasks a user can approve to only the items that are assigned to them.    I assumed that the (Workflow Task List > List Settings > Advanced Settings >  Item Level Permissions > Edit access: Specify which items users can edit) set to 'Only their own' would do the trick, but that setting doesn't seem to impose any limitation on which task item a user can edit.    Oddly enough, when I set the (Read access:  Specify which items users can read) to 'Only their own' I loose access to every single item in the task list; even the ones that are assigned to me.  What gives?  I thought maybe SharePoint's interpretation of 'their own' possession was linked to who created the item instead of who it's assigned to, but these 2 behaviors don't seem to support that theory at all.    Is this a bug in SharePoint because I'm stumped.   Thanks! -Tracy

How do I change Associated task list in a workflow

Hi, I use Sharepoint Designer 2010. How do I change Associated task list in a workflow that I just made. I didn't see any settings where I could adjust the associated task list! Please help.   Regards, Luka

How to properly configure permissions so users can view, add, edit, and delete list items, but not w

I am trying to figure out how to properly setup security so that it can be configured at the top-level, and then inherited all the way through. Here is what I would like to do: Each user can view, add, edit, and delete list items - but, users cannot modify or delete web part pages. The only way I know how to do this is set Contribute from the top-down, and then go into each Site Pages library and set Read access. The problem is that I have 100 sites, and I was hoping there was a way I could set security at the top, and inherit downward. Rather than having to go into all 100 Site Pages library and set Read access. Is there a way to do this? Thanks in advance.

Setting permissions to Items/Views in a list

I have a list containing 2 FY's data. I need to make one of the FY year's data as read-only. Can i create a view filtering only this data and make only this view as read-only or do i need to edit permissions of individual items of the filtered FY and set it as read-only. Is there any other way of doing this?

SharePoint 2010 email enabled list with workflow has incorrect User ID when items are emailed to the

I have set up an approval workflow for a document library that has email enabled. Emails come into the document library fine, however, if an item is emailed to the library the workflow kicks off with the initiator as "System Account" rather than the person who submitted the email. This makes the error of "The e-mail message cannot be sent. Make sure the e-mail has a valid recipient." come up. If someone submits a document directly to the library (by logging into sharepoint and submitting) everything works fine. The person submitting by email is a valid sharepoint user and the profile shows the correct email address. The Created by and Modified by fields show the correct person (rather than System Account), it's only the workflow User ID that shows incorrectly if document is emailed to library. Any help or ideas would be appreciated. Thanks

Anyway to change permissions on a record in a list?

I think I know the answer to this, but need to ask.  Is there anyway, without doing custom development, to change the permissions on a record such that it no longer permits changes? In other words, change status field to "Done" and from then on no more changes.  We can only do WSS "out of the box" and SharePoint Designer.  No development or XML allowed.--rms www.rmschneider.com

How to change item user permissions by workflow using item fields


Hi, thats not a question, but solution. I have read a lot of requests about how to perform this task, so here it is.

Code behind will run workflow which will take XXZ and XXY which are user fields and assign their values as "Full acces" and "Design" user permissions to given list item.

This workflow contains two sections. onWorkflowActivated1_Invoked and SetItemPermissionsEx.

using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Workflow;
using Microsoft.SharePoint.WorkflowActions;

namespace ITCSharepointAddons.Comm_UpdateItemPermissions
  public sealed partial class Comm_UpdateItemPermissions : SequentialWorkflowActivity
    public Guid webID; 
    public Guid siteID; 
    public Guid listID; 
    public int itemID; 
    public Guid workflowId = default(System.Guid); 
    public SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties(); 


Change the content type for multiple list items


I have a document library which is configured to manage content types.  Users will be expected to upload multiple documents into the library.  Then they will be expected to choose the content type of the file and fill in the required metadata.  The only difference in these content types is the template which will be used to create new files of the specific content type so the columns are identical for each content type.

I have created a public view with inline editing enabled but Content Type is not an editable field.

The problem I have is that when I enable Inline editing, the users don't have an opportunity to select the content type, even though the files have just been uploaded and have not been checked in.

My question is this; how can users change the content type of multiple items without having to go through the complete New Item form? 

With literally thousaands of documents to be imported, having the users fill out a separate form for each document when many will have the same column values is a show stopper for our rollout.  It will take too much time.  The project will be a failure. 

I've also tried to create a datagrid view but the same problem exists.  Content type is not an editable column value.

Thanks for helping.


list of document library items' permissions


Hi All,

There is a library (SharePoint Server 2007)

There are many files in this library (with personal permissions).

QUESTION: How to obtain the list of these files with their permissions.


Change the Setting After Approval Workflow done in Sharepoint List Item


Hi Team,

Me and My Team are new for Sharepoint and we want to resolved one task.
Scenario: We have approval workflow on Document List. Now, Our Client wants that once that Document is uploaded, workflow gets started for approval process. which we have done.
Now, They wants that once Document get approved, No one can change the document. It means document will be stop for editing, they can open that and review / print / do other action except Editing and Deleting.

Now, does anyone know how can we achieve the same using custom coding in Visual Studio or Sharepoint Designer ?
i guess we should remove the rights from that document permission for this else we have no idea.

But in either case, Please guide us How to do that step by step.
Thanks for your kind Support.

Thanks & Regards, Brijesh Shah

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

Get pixel format, raw format, property id list and property items image in VB.net - C#.net.

n this simple article you will learn that how we can get pixel format, raw format, property id list and property items image in VB and C#.net.

Get Pixel Format:

Image consists of pixels to get the format of the pixel we have a property named pixel format. This property returns an enumeration of pixel format. This enumeration tells the pixel format.

To demonstrate make a window application. Drag one button and a picture box on form.

Now write the following code on Button click event:

Way of adding items in Drop Down List or List Box using Javascript

The article Way of adding items in Drop Down List or List Box using Javascript was added by raja.s on Sunday, June 06, 2010.

Hi,script type="text/javascript"> function AddItem(Text,Value) { // Create an Option object var opt = document.createElement("option"); // Add an Option object to Drop Down/List Box document.getElementById("DropDownList"

How to Customize the Add Comment 'Items on this list require content approval...' notification in


WSS 3.0:

If content approval is turned on, the Add Comment section displays a fairly ugly notification. Is there any way I can customize that section through e.g. CSS or SPDesigner?

I'd like to change at least the text, and preferably the yellow exclamation image, and also the background if possible.

Setting permissions of a specific SharePoint workflow


We have a very simple workflow whereby an document placed in a public library (INBOX) is moved it to a private library (VERIFY) and then deleted. The workflow works correctly when someone who has access to the VERIFY library drops a record into the INBOX library.  However it does not work when the user does not have access to the VERIFY library.

I was told that I need to "set the AD group associated with a specific SharePoint workflow" but cannot find any reference to this in SPD.



Attach Workflow to Task List, don't get option to manually start workflow via dropdown on task item



I am running WSS 3.0 with other workflows which are functioning correctly.  I created a new workflow in Visual Studio 2008 and was able to successfully run it in my dev environment.  I attached the workflow to a task list in my dev environment and was able to manually start the workflow by using the drop down workflow option and using the menus to manually start it.  I installed this workflow in our production environment and attached it to the task list (which had a SPD workflow attached to it which stopped working about a month ago).  I made sure that the option to manually start the workflow was checked.  When I tried to manually start the workflow, (hover mouse over title, drop down) there isn’t a workflow option.  The workflow also will not start automatically when a task is changed.


I attached this same workflow to a different task list in production and get the option to start it.


I have tried creating a small workflow in SPD 2007 and attaching it to the task list.  It shows that it is attached, when I look at the workflows that are attached to the task list, but I still don’t get the option to manually start it.


I have checked my security and I have fu

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend