PnP: Provisioning.Framework.Console error with User field

%3CLINGO-SUB%20id%3D%22lingo-sub-86925%22%20slang%3D%22en-US%22%3EPnP%3A%20Provisioning.Framework.Console%20error%20with%20User%20field%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-86925%22%20slang%3D%22en-US%22%3E%3CP%3EWhile%20running%20the%20Provisioning.Framework.Console%20sample%2C%20I%20encountered%20an%20error%20with%20a%20SiteField%20of%20type%20User.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20sample%20created%20the%20template%20with%20the%20List%20attribute%20pointing%20to%20%22UserInfo%22%3A%3C%2FP%3E%3CPRE%3E%26lt%3BField%20Type%3D%22User%22%20DisplayName%3D%22Sales%20Person%22%20List%3D%22UserInfo%22%20Required%3D%22TRUE%22%20EnforceUniqueValues%3D%22FALSE%22%20ShowField%3D%22ImnName%22%20UserSelectionMode%3D%22PeopleOnly%22%20UserSelectionScope%3D%220%22%20Group%3D%22Custom%22%20ID%3D%22%7Bbbd75b76-a9e1-4417-93cb-039554853e9c%7D%22%20SourceID%3D%22%7Ba4ae28f2-eaa4-4350-8f29-c67ba3013677%7D%22%20StaticName%3D%22SalesPerson%22%20Name%3D%22SalesPerson%22%20%2F%26gt%3B%3C%2FPRE%3E%3CP%3EWhen%20applying%20the%20template%2C%20the%20engine%20fails%20since%20the%20List%20attribute%20does%20not%20represent%20a%20list%20id%20(GUID)%20nor%20the%20relative%20URL%20of%20the%20list's%20root%20folder.%20(The%20User%20Info%20list%20is%20at%20%22_catalogs%2Fusers%22).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20questions%3A%3C%2FP%3E%3CP%3E1.)%20Does%20the%20issue%20get%20logged%20in%20the%20repo%20for%20the%20sample%2C%20or%20the%20engine%3F%3C%2FP%3E%3CP%3E2.)%20Since%20the%20lookup%20list%20for%20a%20field%20of%20type%20User%20is%20a%20known%20value%2C%20the%20engine%20could%20correctly%20process%20them.%20Would%20the%20fix%20go%20in%20the%20ExtractObject%20method%20or%20the%20ProvisionObjects%20method%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20prepared%20to%20submit%20a%20PR%20along%20with%20the%20issue%2C%20I%20just%20want%20to%20get%20it%20in%20the%20correct%20place.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-86925%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
MVP

While running the Provisioning.Framework.Console sample, I encountered an error with a SiteField of type User.

 

The sample created the template with the List attribute pointing to "UserInfo":

<Field Type="User" DisplayName="Sales Person" List="UserInfo" Required="TRUE" EnforceUniqueValues="FALSE" ShowField="ImnName" UserSelectionMode="PeopleOnly" UserSelectionScope="0" Group="Custom" ID="{bbd75b76-a9e1-4417-93cb-039554853e9c}" SourceID="{a4ae28f2-eaa4-4350-8f29-c67ba3013677}" StaticName="SalesPerson" Name="SalesPerson" />

When applying the template, the engine fails since the List attribute does not represent a list id (GUID) nor the relative URL of the list's root folder. (The User Info list is at "_catalogs/users").

 

My questions:

1.) Does the issue get logged in the repo for the sample, or the engine?

2.) Since the lookup list for a field of type User is a known value, the engine could correctly process them. Would the fix go in the ExtractObject method or the ProvisionObjects method?

 

I am prepared to submit a PR along with the issue, I just want to get it in the correct place.

0 Replies