sharepoint 2013 work management service deep dive

39

Upload: sharepointradi

Post on 01-Jun-2015

3.566 views

Category:

Technology


1 download

DESCRIPTION

Where do you keep track of all your tasks? Outlook? SharePoint? Maybe Project Server? Storing them across multiple applications is a pure Information Worker challenge. SharePoint 2013 has the new Work Management Service Application to solve these issues. It aggregates tasks across SharePoint, Exchange, Project Server and there's even a story for TFS. There's not that much documentation out there on how to configure it, how to maintain and work with it. In this session I will walk through the architecture and setup, and go over how it operates and what you need to know to keep it alive. I will demonstrate the features and discuss all of the technical aspects.

TRANSCRIPT

Page 1: SharePoint 2013 Work Management Service Deep Dive
Page 2: SharePoint 2013 Work Management Service Deep Dive

SharePoint 2013 Work Management Service Deep DiveRadi AtanassovSharePoint MCM & MVPOneBit Software

Page 3: SharePoint 2013 Work Management Service Deep Dive

SharePoint MCSM

SharePoint Server MVP

OneBit Software

Web Platform User Group

C:\Users\Radi>whoami

Page 4: SharePoint 2013 Work Management Service Deep Dive

What is the Work Management Service Application for?

What is the architecture and how does it work

High-Trust / S2S Authentication Provisioning & Configuration Demo

Agenda

Page 5: SharePoint 2013 Work Management Service Deep Dive

Get an understanding of what the Work Management Service Application does and how it operates internally

Learn how to configure an environment for task synchronisation

Demonstrate enough resources to get you going

Show you something not shown at #SPC12

Session Goals

Page 6: SharePoint 2013 Work Management Service Deep Dive

Aggregates “tasks” between SharePoint, Exchange and Project Server

Solves the problem of disconnected “task” lists in multiple places & across applications

What is the Work Management Service App all about?

Page 7: SharePoint 2013 Work Management Service Deep Dive
Page 8: SharePoint 2013 Work Management Service Deep Dive

Productivity Benefits One location to manage tasks

Synced with Outlook (Exchange)

Nice views and timeline

Task Search Grouped by Project

Page 9: SharePoint 2013 Work Management Service Deep Dive

My Tasks

Very quick demo

Page 10: SharePoint 2013 Work Management Service Deep Dive

Task Storage

My Sites

SharePoint Task Lists

Project Server2013

Exchange Server2013

Page 11: SharePoint 2013 Work Management Service Deep Dive

Personal Site

Work Management Service Architecture

List on Personal Site

Project Server DB

SP Content DBSP Web App

Change Log

Work Management

Service

Write personal tasks

Read personal tasks

Refresh request

Change tasks in

to

list

Call as Proj server user mapped to SP User

Call as SP UserGet Tasks via OM

1 2

3

45

6

7

My Tasks

* Taken from the Ignite training material, credits to Vesa Juvonen and Chris Gideon

Page 12: SharePoint 2013 Work Management Service Deep Dive

Supported Tasks• The following Content Types:

• TasksWithTimelineAndHierarchy-171 (SP2013 Task)• Task-107 (SP2010 Task)• GanttTasks-150 (SP2010 Task)

Note: The Task content type should be marked as the Default Content Type for your custom list in order for the tasks to be aggregated by the service.

Page 13: SharePoint 2013 Work Management Service Deep Dive

WMA gets Task List locations from Search (by default cached for 3 hours per user)

Ignores if outside of the farm Lack of frequent crawling can delay

discovery Locations are cached and used in the next

refresh Event handlers create hints

$w=Get-SPWeb “http://mysites/my/personal/radi” $w.Properties["wmahint"]

Dependency on Search

Page 14: SharePoint 2013 Work Management Service Deep Dive

Relies on Timer Job “Work Management synchronize with Exchange” Performs “work” every 1 minute No guarantee that you will see an update, cache is per user

SharePoint calls Exchange One-way trust needed

Required S2S authentication and people hate configuring this

Sync with Exchange

Page 15: SharePoint 2013 Work Management Service Deep Dive

Requires “opting-in”…

Gotcha!

Page 16: SharePoint 2013 Work Management Service Deep Dive

Opt-in from any Task List and PWA

Page 17: SharePoint 2013 Work Management Service Deep Dive

What gets synced?Outlook Property

MY TASKS property

SharePoint property

Project property Notes

Subject Title Title Name  

Due Date Due Date Due Date Finish Date  

Body Description Description n/a  

Status Completed Checkbox

n/a n/a This works in parallel with % Complete property

Folder name Group name List name Project name  

Start Date n/a Start Date Start Date  

Importance Pinned Date n/a n/a  

Total Work Total Work n/a Total Work  

Actual Work Actual Work n/a Actual Work  

% Complete % complete % complete % complete This works in parallel with the Status property. Set to 100 when task is marked as complete. Set to 0, when unmarked.

Page 18: SharePoint 2013 Work Management Service Deep Dive

SharePoint, Project and Exchange are providers

Caching and refreshing is per provider Technically, you can create your own

providers Not documented. Not supported. See Adis Jugo’s blog in the references using Microsoft.Office.Server.WorkManagement; using Microsoft.Office.Server.WorkManagement.ProviderOM; using Microsoft.Office.Server.WorkManagement.Providers;

Based on a provider model

Page 19: SharePoint 2013 Work Management Service Deep Dive

What is Server-to-Server (S2S) authentication? Also called “High Trust” A configuration of trust between an

application and SharePoint Designed to facilitate on-premises

authentication Example: SharePoint, Workflow and

Exchange communicate with each other over S2S

No need for ACS in on-premises deployments

Page 20: SharePoint 2013 Work Management Service Deep Dive

S2S requires certificates

1

2

43

SharePoint Web Server

User

App

S2S STS

SSL Cert Public/Private key pair (.pfx)

Page 21: SharePoint 2013 Work Management Service Deep Dive

Work Management Service ApplicationConfiguration

Page 22: SharePoint 2013 Work Management Service Deep Dive

Configuration - prerequisites Exchange Server 2013 SharePoint 2013 with:

User Profile Service Application – with a profile Work Management Service Application Claims Web Application with SSL Installed Exchange Web Services API on SP servers Search (to aggregate SP tasks) Project Server (for aggregation of Project tasks)

Cross-farm is not supported

Page 23: SharePoint 2013 Work Management Service Deep Dive

Configuration – user interfaces My Site Host over SSL

https://va-dev-01:3000

A SharePoint Project Site https://va-dev-01

Project Web App https://va-dev-01/PWA

Outlook Web App https://va-exc-01/owa

Page 24: SharePoint 2013 Work Management Service Deep Dive

Configuration – User Profiles You just need profiles in there for

S2S, but you need My Sites for the “My Tasks” list

Can use the new (old) AD Import You must give access to the My Site

Host web application pool service account

Page 25: SharePoint 2013 Work Management Service Deep Dive

Configuration – WM Service Application Central Administration

No interface for settings!!

PowerShell New-SPWorkManagementServiceApplication New-SPWorkManagementServiceApplicationProxy Set-SPWorkManagementServiceApplication Set-SPWorkManagementServiceApplicationProxy

Page 26: SharePoint 2013 Work Management Service Deep Dive

Configuration - Creating a new service application

$appPool = Get-SPServiceApplicationPool "SharePoint Services”

$wmsa = New-SPWorkManagementServiceApplication –Name "Work Management Service Application" –ApplicationPool $appPool–Proxy

$wmsaProxy = New-SPWorkManagementServiceApplicationProxy -Name "Work Management Service Application Proxy" -ServiceApplication $serviceApp

Page 27: SharePoint 2013 Work Management Service Deep Dive

Modifying settings - Set-SPWorkManagementServiceApplication

• NumberOfUsersPerEwsSyncBatch - the maximum number of users per Timer job interval. (default 100)

• NumberOfUsersEwsSyncWillProcessAtOnce - the maximum number of users at one time. (default 10)

• NumberOfSubscriptionSyncsPerEwsSyncRun - the minimum amount of time (in minutes) between calls for a new tenant to synchronize Exchange Web Services tasks. (default is 30 minutes)

• MinimumTimeBetweenSearchQueries - the minimum amount of time (in hours) between calls to search for a given user. This parameter is used to discover new providers not yet known to have tasks for this user. (default is 3 hours)

• MinimumTimeBetweenProviderRefreshes - the minimum amount of time (in minutes) between refreshes for a provider for a given user. (default is 5 minutes)

• MinimumTimeBetweenEwsSyncSubscriptionSearches - the minimum amount of time (in minutes) to find new tenants that want to synchronize Exchange Web Services tasks.

Page 28: SharePoint 2013 Work Management Service Deep Dive

Configuration – Exchange Web Services API

Download EWSManagedAPI.msi from the Microsoft Download Center http://www.microsoft.com/en-us/download/details.aspx?id=35371

Run: msiexec /i EwsManagedApi.msi

addlocal="ExchangeWebServicesApi_Feature,ExchangeWebServicesApi_Gac“

Do an IISReset…

Page 29: SharePoint 2013 Work Management Service Deep Dive

Configuration – Exchange Server 2013 server to trust the SharePoint 2013 server To establish OAuth trust and service permission

on Exchange, run: Configure-EnterprisePartnerApplication.ps1 -

ApplicationType Sharepoint -AuthMetadataUrl https://<SP_FQDN>/_layouts/15/metadata/json/1

Located in “C:\Program Files\Microsoft\Exchange Server\V15\Scripts”

Make sure certificates are trusted

Page 30: SharePoint 2013 Work Management Service Deep Dive

WMA service account needs access to UPA My Site Host web application pool service

account needs access to UPA and the content databases

(GrantAccessToProcessIdentity)

Permission Checklist

Page 31: SharePoint 2013 Work Management Service Deep Dive

Provision PWA sites after configuring WMA

Or add the WM service account to the Project Server databases’ PSDataAccess role.

Project Server Dependency

Page 32: SharePoint 2013 Work Management Service Deep Dive

Work Management Service Configuration

DEMO

Page 33: SharePoint 2013 Work Management Service Deep Dive

Key takeaways Work Management Service

configuration has a few steps but is not that hard

Not enough documentation out there ULS Logs is the key tool for

troubleshooting S2S is pretty awesome…

Page 34: SharePoint 2013 Work Management Service Deep Dive

Resources Configure Exchange task synchronization in

SharePoint Server 2013 - http://technet.microsoft.com/en-us/library/jj554516.aspx

Configure server-to-server authentication between SharePoint 2013 and Exchange Server 2013 - http://technet.microsoft.com/en-us/library/jj655399.aspx

How to: Create high-trust apps for SharePoint 2013 using the server-to-server protocol (advanced topic) - http://msdn.microsoft.com/en-us/library/fp179901.aspx

Page 35: SharePoint 2013 Work Management Service Deep Dive

The best resource out there: My Tasks Aggregation in SharePoint Server and Exchange Task Integration – Whitepaper by Marc Boyer

http://www.microsoft.com/en-us/download/details.aspx?id=38799

Resources #2

Page 37: SharePoint 2013 Work Management Service Deep Dive

Time for questions Please fill in your feedback forms

Thank you !!!!!!!!! You are AWESOME!

Contact me to solve your S2S problems [email protected] @RadiAtanassov Facebook: Radi Atanassov LinkedIn: http://au.linkedin.com/in/sharepointradi Blog: www.sharepoint.bg/radi Company: www.onebitsoftware.net

Page 38: SharePoint 2013 Work Management Service Deep Dive

© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Page 39: SharePoint 2013 Work Management Service Deep Dive

The end.