pnp/PnP

Core.ProfilePictureUploader does not connect to Gov tenant

ewillman opened this issue · 1 comments

Category

[ X] Bug
[ ] Enhancement

Environment

[X ] Office 365 / SharePoint Online
[ ] SharePoint 2016
[ ] SharePoint 2013

Bug in Core.ProfilePictureUploader, it does not seem to support government tenants.

If I specify full qualified tenant name in the configuration.xml (e.g. mygovtenant.sharepoint.us), it appends -admin.sharepoint.com to the url, resulting in the following error:

Initializing SPO web service https://mygovtenant.sharepoint.us-admin.sharepoint.com/_vti_bin/userprofileservice.asmx
Error initiating connection to profile web service in SPO Value cannot be null.
Parameter name: cookieHeader
Processing finished for 0 user profiles (or so)

If I just specify the root name in the configuration.xml (e.g. mygovtenant), the behaves similarly:

Initializing SPO web service https://mygovtenant-admin.sharepoint.com/_vti_bin/userprofileservice.asmx
Error initiating connection to profile web service in SPO Value cannot be null.
Parameter name: cookieHeader
Processing finished for 0 user profiles (or so)

Created a pull request to support GCC