Configuring Workflow Manager in SharePoint 2013

Workflow Manager is a multi-tenant host for running and managing Windows Workflow Foundation workflows, and supporting high scale and high density execution. Workflow Manager builds on the Windows Workflow Foundation programming model, run time, and activity library in the .NET Framework.

When you install SharePoint 2013 in your server only 2010 workflows will be available in SharePoint. To work on SharePoint 2013 workflows, you should install and configure the workflow manager in the server.

Given below are the steps to configure your Workflow Manager:

  1. Ensure you have installed the SharePoint 2013, SQL, Active directory in your server.
  2. Ensure SharePoint related services are running.
  3. Install workflow manager and select default values, click finish and exit.To download the file: https://www.microsoft.com/en-gb/download/details.aspx?id=35375
  4. Install Cumulative updates for workflow manager and service bus.
  5. Now open workflow manager to configure.

  1. Give DB name and required details
  2. Give admin account for configuration.
  3. Select HTTP
  4. Give subscription key as configuration key (example: Zebra#@!)
  5. Click next
  6. Give same details for service bus configurations.
  7. Click finish

Go to IIS manager, select workflow management site under `sites’, click on browse 1229: http and note down the Url.

Open workflow management PowerShell and run the following script:

Register-SPWorkflowService -SPSite “http://localhost:port ” -WorkflowHostUri “http://localhost:12291″ -AllowOAuthHttp

SPsite will be your site collection URL and workflowHostUri will be your workflow manager site Url you just copied in the above steps.

if you get an error,  please run Add-PSSnapin and give the name as ” microsoft.sharepoint.powershell.

Then you go ahead and check whether SharePoint 2013 workflow option coming or not in designer. Create one test workflow. If you get the error while publishing below are the troubleshoots.

  1. Check whether the App Management Service application is created, if not then create the App Management Service application.
  2. Click on “Configure service application associations” available under the Service Applications section.
  3. Check whether the App Management Service proxy is added to the default proxy group, if not then add it to the default proxy group.
  4. Check whether the App Management Service is started, if not then start the service.
  5. Please refer 🙁http://www.c-sharpcorner.com/UploadFile/anavijai/error-app-management-shared-service-proxy-is-not-installed/) or follow below steps.

SharePoint 2013 User Profile Synchronization with Active Directory

SharePoint active directory import allows you to import the active directory user information to SharePoint user profile service.

User profile service application stores the information about the user like first Name, last name, Phone Number, location etc. in central location. SharePoint will create three databases for storing the profile information and associated data.

  1. Profile Database – This particular DB stores the user profile information.
  2. Social tagging Database – This database stores social tags and notes created by users.
  3. Synchronization Database – This database stores configuration and staging information. This helps for synchronizing data from external sources such as the Active Directory Domain Services (ADDS).

Prerequisites to perform the import for Sharepoint synchronization:

  • To perform the synchronization, you must be a member of farm administrator group.
  • You must know the credentials of domain controller that has synchronization permission.

Before you begin with the synchronization note what AD import does not support.

  • Import operation is one way, changes made to the SharePoint user profiles wont reflect in AD.
  • The active directory import option lets you configure and use only a single farm wide property mapping.
  • Active directory import option does not support generic (non-AD) LDAP sources.
  • Active directory import option does not support BCS Import.

Importing the User profile information to active directory involves following four steps.

  • Enable Active directory import.
  • Configure synchronization connection.
  • Map active directory attributes with user profile properties in SharePoint.
  • After completion of above three start synchronization in SharePoint.

Enable Active directory import:

  • Open SharePoint Central Administration click on Manage service application under the Application Management section.
  • In Manage Service Applications page, click on User Profile Service Application.
  • In Manage Profile Service page click Configure Synchronization Settings in the Synchronization section.
  • On the Configure Synchronization Settings page select Use SharePoint Active Directory Import option, and click OK.

Configure synchronization connection:

  • On the Manage Profile Service page, click Configure Synchronization Connections.
  • Now click on Create New Connection button.
  • In new synchronization connection page, enter the connection name in the Connection Name text box.
  • From the Type list, select Active Directory Import.
  • In the Fully Qualified Domain Name box, enter the Fully Qualified Domain Name.
  • Select the authentication provider type in Authentication Provider Type box.
  • Select an Authentication provider from the Authentication Provider Instance box when you select Trusted Claims Provider Authentication or Forms Authentication. The Authentication Provider Instance box lists only the authentication providers that are currently used by a Web application.
  • In the Account name box, enter the synchronization account with domain and username. The synchronization account must have Replicate Directory permissions or higher in the root OU of Active Directory.
  • In the Password box, enter the password for the synchronization account.
  • Enter the password for the synchronization account again in the Confirm password box.
  • In the Port box, enter the connection port. (optional)
  • Select Use SSL-secured connection If a Secure Sockets Layer (SSL) connection is required to connect to the directory service. (optional)
  • You can also filter objects that are imported from the directory service, in the Filter in LDAP syntax for Active Directory Import box, enter a standard LDAP query expression to define the filter. (optional)
  • In the Containers section, click Populate Containers and then select the containers from the directory service which you want to synchronize. All OUs selected will be synchronized along with their child OUs.
  • Click OK and a newly created connection will be listed on the Synchronization Connections page.

Map AD attributes with user profile properties.

  • Click Manage service applications in the Application management section in the Central Administration.
  • Click User Profile Service Application in service application page.
  • Click Manage User Properties in the People section.
  • Right-click the name of the property that you want to map a directory service attribute, and then click Edit.
  • You can also remove an existing mapping by selecting the mapping that you want to remove, and then click Remove in the Property Mapping for Synchronization section.
  • To add a new mapping: In the Add New Mapping section, in the Source Data Connection list, select the data connection that represents the directory service to which you want to map the user profile property to.
  • In the Attribute box, enter the name of the directory service attribute to which you want to map the property.
  • Click Add.
  • Click OK.
  • Repeat steps 4 through 7 to map additional properties.

Start synchronization:

  • Click Manage service applications in the Application management section in the Central Administration.
  • Click on Start Profile Synchronization in the Synchronization section.
  • Select Start Full Synchronization in Start Profile Synchronization, if this is the first time you are synchronizing or if you have already added or modified any synchronization connections in the past.
  • Select Start Incremental Synchronization to synchronize only information that has changed in the last time synchronization.
  • Click OK. The Manage Profile page will display the status of profile synchronization in the right panel.

Need help with Sharepoint. Reach out to our experts to help you with a full range of well-structured services for planning, developing, and deploying SharePoint based solutions.