I'm using a Visual Studio SharePoint Solution to create my list instances manually and want to define the UserSelectionScope for a field in a list like this (in the Schema.xml file):

<Field DisplayName="Manager" UserSelectionScope="<MyGroupId>" Type="User" UserSelectionMode="PeopleOnly" Name="Manager" .../>

The Managers group is created using PowerShell and this is of course done after the Site has been created.

Problem: The value for the UserSelectionScope cannot be changed after the Site is created. And before creating site and the group, I don't know what group ID to specify. The New-SPGroup command also does not allow giving a custom group ID as a parameter. How do I get around this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.