This project is read-only.
Steps to deploy the custom action:

1. download the DLL and register the DLL in the GAC.

2. Add to your web.config the following line in AuthorizeTypes section

<authorizedType Assembly="AddUserToGroup, Version=, Culture=neutral, PublicKeyToken=e82442daf6f5df8e" Namespace="CustomAction" TypeName="*" Authorized="True" />

3. Create AddUserToGroup.ACTIONS file with text bellow and save it to the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\1033\Workflow folder. this file is also available for download.

<?xml version="1.0" encoding="utf-8"?>
<WorkflowInfo Language="en-us">
<Actions Sequential="then" Parallel="and">
<Action Name="Add User to the group" ClassName="CustomAction.AddUserToGroup" Assembly="AddUserToGroup, Version=, Culture=neutral, PublicKeyToken=e82442daf6f5df8e" AppliesTo="all" Category="ARC Action">
<RuleDesigner Sentence="Add %1 to the %2 at site %3">
<FieldBind Field="UserName" Text="Please put the User Name" Id="1" DesignerType="TextArea"/>
<FieldBind Field="GroupName" Text="Please put the Group Name" Id="2" DesignerType="TextArea"/>
<FieldBind Field="SiteName" Text="Please put the Site Name" Id="3" DesignerType="TextArea"/>
<Parameter Name="Context" Type="Microsoft.Sharepoint.WorkflowActions.WorkflowContext, Microsoft.SharePoint.WorkflowActions" Direction="In"/>
<Parameter Name="UserName" Type="System.String, mscorlib" Direction="In" />
<Parameter Name="GroupName" Type="System.String, mscorlib" Direction="In" />
<Parameter Name="SiteName" Type="System.String, mscorlib" Direction="In" />

Now open up a site and create a workflow in SharePoint Designer, “Add User to a group” step should be available in the list of action.

Add this step and fill in the info, User name, Group Name and the site URL, all fields are mandatory for the workflow action to run.

Last edited Apr 6, 2010 at 12:22 AM by natalyvo, version 1


maroin22 Feb 1, 2012 at 7:23 AM 
is it work with sharepoint 2010