UpdateUserSyncSetting Method
The document is archived and information here might be outdated

Admin.UpdateUserSyncSetting Method

Updates the setting for user synchronization with SharePoint Server 2010.

Namespace:  [Admin Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/Admin.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/Admin.asmx?wsdl

[SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/Admin/UpdateUserSyncSetting", RequestNamespace = "http://schemas.microsoft.com/office/project/server/webservices/Admin/", 
	ResponseNamespace = "http://schemas.microsoft.com/office/project/server/webservices/Admin/", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateUserSyncSetting(
	UserSyncSettings userSyncSetting


Type: [Admin Web service].UserSyncSettings
One or more enumerated user synchronization settings.

The enumeration members can be combined with the Or (|) operator to disable more than one synchronization setting.

Project Server Permissions




Allows a user to manage the project site. Global permission.

The following example shows the use of the UpdateUserSyncSettings method. It disables synchronization with email and project sites, for the application user. SvcAdmin is the namespace of the Admin service in the ProjectServerServices.dll proxy assembly. For information about creating a PSI proxy assembly and an app.config file, see Prerequisites for WCF-Based Code Samples.

using System;
using System.Text;

namespace Microsoft.SDK.Project.Samples.UpdateUserSyncSetting
    class Program
        private const string ENDPOINT = "basicHttp_Admin";

        private static SvcAdmin.AdminClient adminClient;

        static void Main(string[] args)

            int syncSettings = (int)SvcAdmin.UserSyncSettings.DisableEmailSync
                | (int)SvcAdmin.UserSyncSettings.DisablePWS;

            Console.WriteLine("SyncSettings value: {0}", syncSettings.ToString());


            Console.Write("\nPress any key to exit... ");

        // Use the endpoints that are defined in app.config to configure the client.
        public static void ConfigClientEndpoints(string endpt)
            adminClient = new SvcAdmin.AdminClient(endpt);

The console output is: SyncSettings = 12

© 2016 Microsoft