Restricting People Picker of "Person or Group" column to Site Groups only

Hi,
I am working on SharePoint Online 2013 and I have created a column - DocOwner with "Person or Group" type in document library. In the site collection there are 4 groups lets say - A,B,C,D. When user creates a new item (document set), in newform.aspx,
I want to restrict the people picker of "Docowner" column to only Site groups, as currently it is showing all users who are there in SharePoint online.
I read this article - http://office.microsoft.com/en-in/sharepoint-server-help/site-column-types-and-options-HA010302196.aspx#_Toc277149829.........where they are saying that we can limit the people picker to site users only.
How this can be achieved using OOTB in SharePoint 2013 Online ? 
Vipul Jain

You can create a workflow to execute CSOM which will verify group membership details and update it to choice column 
http://stackoverflow.com/questions/23432665/sharepoint-online-csom-associated-site-groups-associatedmembergroup-associatedow
http://sundarnarasiman.net/?p=497
namespace GetUsersInGroupCSOM
class Program
static void Main(string[] args)
//Replace it with the url of your tenant or your site-collection
string SiteUrl = "https://yoursite.sharepoint.com";
System.Uri oUri = new System.Uri(SiteUrl);
using (ClientContext oClientContext = new ClientContext(SiteUrl))
//Replace it with your user id for SharePoint Online
string UserName = "[email protected]";
//Replace it with your password
string Password = "yourpassword";
//Create a SecureString object from password string, needed for SharePointOnlineCredentials class
SecureString SecurePassword = GetSecureString(Password);
oClientContext.Credentials = new SharePointOnlineCredentials(UserName, SecurePassword);
//Load the site-collection groups using CSOM
oClientContext.Load(oClientContext.Web.SiteGroups);
oClientContext.ExecuteQuery();
GroupCollection oSiteCollectionGroups= oClientContext.Web.SiteGroups;
Console.WriteLine("List of groups in the site collection");
Console.WriteLine("-------------------------------------");
foreach (Group oGroup in oSiteCollectionGroups)
Console.WriteLine(oGroup.Title);
Console.WriteLine("\n");
//Load the users collection in the Group 1
oClientContext.Load(oSiteCollectionGroups[1].Users);
oClientContext.ExecuteQuery();
Console.WriteLine("List of users in the first group of site-collection");
Console.WriteLine("-------------------------------------");
foreach(User oUser in oSiteCollectionGroups[1].Users)
Console.WriteLine(oUser.Title);
Console.WriteLine("\n");
Console.ReadLine();
private static SecureString GetSecureString(String Password)
SecureString oSecurePassword = new SecureString();
foreach (Char c in Password.ToCharArray())
oSecurePassword.AppendChar(c);
return oSecurePassword;
http://the-north.com/sharepoint/post/Update-Choice-Field-using-CSOM-%28Client-side-Object-Model%29
using (ClientContext
ctx = new ClientContext("http://MyServer/MySite"))
Field genericField = ctx.Web.Lists.GetById(listID).Fields.GetById(fieldGuid);
FieldChoice fldChoice = ctx.CastTo<FieldChoice>(genericField);
                ctx.Load(genericField);
                fldChoice.Choices = “MyChoice1;MyChoice2;MyChoice3”.Split(";".ToCharArray());
                fldChoice.Update();
                ctx.ExecuteQuery();               
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • How can we uncheck " send an email invitation" option from people picker of SharePoint 2013 for the specific site collection / Web application?

    Hi,
    Please help.
    Thanks
    srabon

    By default, you can't. This involves making a modification to a file in the 15 hive on all SharePoint WFEs (but this kind of change is not supported/recommended as it can be overridden by any update to SharePoint).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to populate a field in an Infopath form based on the people picker input - only OOTB approach

    Hello,
    I have 3 lists : Resource , Project, Contract
    In "Contract" list i have created a form with MS Infopath 2010. This form is used to collect data of a new resource joining a project . This form also takes the information about the resource's costs.
    Scenario :
    Project informations are already present in the "Project" list.
    Any new resource who will be joining a project will be added in the "Resource" list at first . This list has its own form to do so. While adding this resource the form asks for the project which should be assigned. This is dealt with.
    "Contract" list : In this lists form their is a people picker field where the resource email id(already inserted in "Resource" list earlier) will be typed by me. There is a field which will capture the project name.
    Issue in "Contract" list:
    When i type the resource email id and click on the people picker icon , the project field in the form should get auto populated with the corresponding project of the existing resource so that i donot have to type the project name again. This project info
    should be fetched from "Resource" list only.
    Please let me know how i can achieve this by OOTB approach .
    Regards,
    Guru

    try these links:
    http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
    http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx

  • Address Book Does Not Populate InfoPath People Picker Form Field in Chrome, Firefox, or Safari--only IE

    Since applying the December 2014 Cumulative Update for SharePoint Server 2010, the Address Book in all of our InfoPath forms will not populate the People Picker field in Chrome, Firefox, or Safari--it only works in Internet Explorer. People can still use
    the address book to search for names, but when they click on a choice, the name doesn't get transferred into the People Picker field. It used to work in all browsers before we did the CU.
    The workaround we have been using is to have people type a last name, first name (or username) directly in the People Picker, click the checkbox icon, and then click on the name they typed (now with a red squiggly line under it and a message that no exact
    match was found) to select from the list of names in the resulting popup. The workaround is not intuitive, and many users stop when they see the red squiggly line, believing it to be an error. Please help. Thanks!

    Hi In, you'll experience various types of issues when not using IE due to lack of support for functionality. The following links seem to be related to your problem and might give you a workaround:
    http://sharepoint.stackexchange.com/questions/85644/infopath-form-error-when-using-people-picker
    http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
    cameron rautmann

  • Restrict group to edit users in people picke in infopath

    hi
    I have a document with people picker I want to restrict group A to pick or edit the users in existing document and groupB able to edit the users in people picker how is it possible to make it in InfoPath.

    Hello,
    This would be easy to do with groups that can access specific sections of the form and then use SharePoint or AD groups to govern access, but unfortunately it does not work in InfoPath. 
    One alternative possibility is to set up a list in SharePoint and enter the names of the smaller group of people into that list (Person field).
    The InfoPath form has a data connection to that list. The form has one section with a people picker and another section with a calculated field that shows the value of the people picker. 
    When opening the InfoPath form, check if the current user exists in the list and hide the section they should not see.
    cheers, teylyn

  • I have a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

     i have  a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

    Hi,
    To hide/disable controls based on user group in an InfoPath form, a solution is that we can call User Profile Service to check the group of current user, then hide/disable
    specific controls by setting some rules in form.
    Here is a demo with steps in details would be helpful to you:
    http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/
    More information about checking if a user is a member in a SharePoint group within web InfoPath 2010 forms:
    http://www.hishamqaddomi.ca/spg/index.php/sharepoint-2010/infopath-2010/65-checking-if-a-user-is-a-member-in-a-sharepoint-group-within-web-infopath-2010-forms
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Person and Group column in Document Information Panel in Word

    Hi All,
    Environment: SharePoint 2010 and Claims based Authentication.
    We have a library with "Person and Group" column, "Choose from:" is set to "All Users" and in the "Document Information Panel" when I click on the Address Book (book symbol) it doesn't open the popup to select  the
    user nor it resolves the ids that I put in.
    But if I change the setting for "Choose from:" to "SharePoint Group:" and select any group (tested randomly with some existing groups in that site), now when I click on the Address Book in the DIP it gives me the popup and also resolves
    the ids.
    Any help would be appreciated.

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/868b7d59-06e7-437f-8a3e-5f49e51c7b8d/people-picker-render-error-in-document-information-panel
    Have you by chance looked at ULS logs or taken a network trace during the time the People Picker control is attempting to be rendered? 
    It seems to be a client-side issue. GPOs have been applied to "secure" Office2010.
    Have you ever heard of GPOs causing such issues? As far as I know the people picker is an ActiveX control. There are two settings in the GPO which have something to do with Active X:
    Active X Control Initialization
    Check Active X Objects
    Windows Internet Explorer Feature Control Opt-In
    Beaconing UI for forms opened in Infopath Filler Active X
    Bind to Object
    If this helped you resolve your issue, please mark it Answered

  • How to save users added to list using people picker to sharepoint Group

    Hi
                I have created List with some people picker columns and now when I save a list,the data is saved to list as well as the users in particular column will be added to particular sharepoint
    group. Is there any sharepoint out of box solution for this or I need to do it programmatically. Kindly provide me any procedures or solutions as you know.
      1) how to bind the particular sharepoint group to the particular column
      2) How to add users to the particular sharepoint group
    Thanks
    Razvi444

    Hi Razvi444,
    There is no out of the box way to achieve this.You need to write a custom event receiver ,inside event receiver
    event,  you
    can check column (people picker value) and add it to desired group if that user not exist already.
    Thanks

  • People Picker Restriction

    Hello,
    Please help me. This is urgent for me.
    Can you please answer 2 questions below accurately? If you have reference links, please also provide it.
    Can you force SP2013 to allow only a given group (SharePoint or AD) to access/launch PeoplePicker?
    Can you show the information in People Picker differently for different groups (e.g. In PeoplePicker, “everone” can only see Name/Email; but “IT Admins” can see Name/Email/Title/Phone)?
    Thanks.
    chirag

    The answers to both questions are no without custom programming.  If a user has rights to add a person to a site then they can see the people picker.  The views in people picker are also set for the control and can't be changed based on permissions.
    The one exception to this would be to surround the people picker control itself with an
    SPSecurityTrimmedControl control and set that to control the visibility of its contents, including the people picker.  See the following for details
    http://blogs.technet.com/b/chad/archive/2009/12/03/tip-12_3a00_-hide-in-plain-view-with-sharepoint_3a00_spsecuritytrimmedcontrol.aspx 
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Can't find "people or group"-column in database

    Hi,
    Where can I find the people and group column in the database in SharePoint
    2010? I need this for a report...
    I have a list with multiple columns. In the Table "AllUserData" I can find all information of the columns exept the people picker column.
    I found this solution:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/1e786892-1386-4e67-8a12-77f9ba0c1f64/where-can-i-find-the-people-or-group-columns-in-alluserdata-table-?forum=sharepointdevelopmentlegacy
    But there they are talking about "tp_LeafName" and "tp_DirName" and I can't find these columns...
    Any idea?

    Found it, needed this tables:
    [AllDocs]
    [AllUserData]
    [AllUserDataJunctions]
    [UserInfo]

  • Single line of text/email id to People or Group column

    I have a list of employee details, along with their SharePoint email ID. I want to import this list along with a new People or Group column, where it reads the email id and picks the correct user from Active Directory. How to import this?

    Hi Abul,
    Based on your description, I did a test. When I used users' email address in excel table and imported it to SharePoint list, the column would be saved as Hyperlink or Picture type. If I used Domain\User, after importing it to SharePoint list, the column
    would be saved as Single line of text type.
    It seems that it only is converted into Single line of text or Hyperlink type when you import a table into SharePoint list, by default. There is not a way to convert the table column in excel file into People column in SharePoint list.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Send an Email to those who are marked in people/group column

    In the discussion boards, I would like to add a people or group column.
    So whenever some name is mentioned in that column, I would like an Email to be triggered to that particular person or group.
    If this is been created through Task list,  I know it would be possible. But I want to achieve the logic of discussion board and want to trigger an Email to someone who might be interested in that particular discussion.
    Is there a way to do it ?
    Came across this forum which exactly talks about my requirement.
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1e2f233d-2077-422a-bbd0-098c065b90ce/how-to-send-email-to-people-and-group-field?forum=sharepointadminprevious
    But is there any easier and alternate way to do this? Thanks in advance.
    Veeramani.S

    Hello Veera. S,
    You can look this tutorial for SPD 2013: http://msdn.microsoft.com/en-us/library/office/jj554671(v=office.15).aspx
    Or this for SPD 2010: http://sharepoint-videos.com/module-1/sp10creating-a-workflow-on-a-list-using-sharepoint-designer-2010/
    http://blogs.msdn.com/b/edhild/archive/2011/06/01/creating-custom-workflow-task-approval-forms-with-sharepoint-designer-2010.aspx
    http://office.microsoft.com/en-001/sharepoint-designer-help/introduction-to-designing-and-customizing-workflows-HA101859249.aspx
    If a post answers your question, please click Mark As Answer on that post and
    Vote as Helpful

  • What is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
    https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Unable to select SOME external users in person or group column in SharePoint O365

    Here's a head scratcher.
    We have an O365 SharePoint(G3) instance.
    Sent external users invites to join the site from the SharePoint Group that the external user will be placed.
    External users accepted invitations and now have access to the site with the correct permissions.
    Permissions assigned to SharePoint Group.
    Some external users can be selected for "Assigned to" field (person or group column type).
    Some external users canNOT be selected for "Assigned to" field (person or group column type).
    When typing external users name that canNOT be selected, the error message "No results found" appears.
    Went to Site Settings > Site Permisisons > Check Permissions and typed in external users name that canNOT be selected, the error message "No results found" appears.
    I have no idea why this would happen for some external users and not others.
    External users that can be selected and those that canNOT be selected are in the same SharePoint Group and have the same permissions.
    Could this be due to how the external user set up their account?
    Help me please. This is driving my crazy.
    Thanks in advance.
    Tamara
    The Stumped SharePointer
    Tamara Bredemus SharePoint Minion...working up to Maven

    Hi Miikka,
    can you try cleaning up the user information list via powershell and reconfigure the userprofile sync.  following url contains the powershell script for user information clean up
    http://blog.fpweb.net/how-to-clean-up-sharepoint-user-information-list-with-powershell/#.VPrbn_mUeSo
    Regards  Roy Joyson
    Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.
    Roy Joyson

  • People Picker column not displaying name in list view

    I have a strange thing going on in list views. If I create a default view with a people picker column, it does not show the name - it appears to be blank (like below);
    If I then alter the view and make the style "Shaded" the user name appears (like below);
    It also seems to be an issue when looking at a Workflow process or survey results..  Can anybody explain to me why this is happening and how to resolve the issue? 

    Hi,
    As I understand, the issue occurs to All task view in task list, assigned to column not showing while it could be filtered.
    I’d recommend you create a new view with needed column including assigned to column, and make it default.
    Here is a similar thread, please check if it helps:
    http://sharepoint.stackexchange.com/questions/87089/assigned-to-column-text-hidden-but-filterable
    Regards,
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • 3D does not work in Photoshop CS6 on my Dell i7 laptop

    Hi Problems with 3D objects. PS freezes every time I create a 3D object and try to come out of 3D mode or save the file. TRIED: Updating driver for ATI Mobility Radeon HD560V display adapter AMD website auto-suggested and installed HD 4650 (?) driver

  • A few questions on upgrade fee, overage charge on prorated bill, and data usage when phone is on WiFi

    1st question, I bought 2 iPhone 4s's Dec 2011, unlimited plan which was up Dec 2013. April 19 2014, I bought 2 iPhones, 1 5c, 1 5s with the more of everything plan, which is not more of everything, it's far less then my old plan, but whatever. I got

  • Small changes in colors every few minutes

    Hi, I am using my LED for nearly a week with my 13" macbook and I am noticing tonight a slight "flickring" of the screen's color. It goes totally bright (as it should) and it changes to a less brighter, more warm color, then back to bright, over and

  • BUGS in Lightroom 1.0

    Ok, I'm already working a month of 2 with LR. So far, I like the app very much, if it was not for al those bugs! I encountered following things: Anybody else with these bugs? * sorting order; sorting on edit time instead of capture time * exporting p

  • How to install version 3.4?

    Hi I am trying to install version Aperture 3.4 for a new camera. I have just updated to OS 10.7.5 (the most recent OS my laptop will run) and I have Aperture 3.2.4 already installed. The App Store will only offer me Aperture 3.5 and just gives me the