People Picker JS Control not fetching all the users...

Hi,
I am using Java Script people picker control. It fetching information for users but not all. I used following code block to get the control working. Why is not fetching all the users?? Where as OOTB people picker fetches same user. This does not make sense.
My environment is SharePoint online.  
// Run your custom code when the DOM is ready.
$(document).ready(function () {
// Specify the unique ID of the DOM element where the
// picker will render.
initializePeoplePicker('peoplePickerDiv');
// Render and initialize the client-side People Picker.
function initializePeoplePicker(peoplePickerElementId) {
// Create a schema to store picker properties, and set the properties.
var schema = {};
schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup';
schema['SearchPrincipalSource'] = 15;
schema['ResolvePrincipalSource'] = 15;
schema['AllowMultipleValues'] = true;
schema['MaximumEntitySuggestions'] = 50;
schema['Width'] = '280px';
// Render and initialize the picker.
// Pass the ID of the DOM element that contains the picker, an array of initial
// PickerEntity objects to set the picker value, and a schema that defines
// picker properties.
this.SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, null, schema);
Here is the link from Microsoft explaining it.
 How to: Use the client-side People Picker control in SharePoint-hosted apps: https://msdn.microsoft.com/en-us/library/office/jj713593.aspx
Appreciate any help or workaround here.
Thanks.

Hi,
In my case im usign customize people picker. it is better to use in delelopement since you have the control and customization.
I have used select2 (https://select2.github.io/examples.html) drop down control and create a people picker
You can use the same REST call to populate data.
function initApproversPicker(success, fail) {
            var data = { results: [] };
            var executor = new SP.RequestExecutor($$.getAppWebUrlUrl());
            executor.executeAsync(
  url: $$.getAppWebUrlUrl() + "/_api/web/siteusers",
  method: "GET",
  contentType: "application/json;odata=verbose",
  headers: { "Accept": "application/json; odata=verbose" },
  success: function (dt) {
      $.each(JSON.parse(dt.body).d.results, function (i, ele) {
          data.results.push({ id: ele.Id, text: ele.Title });
      executor.executeAsync(
           url: $$.getAppWebUrlUrl() + "/_api/web/sitegroups",
           method: "GET",
           contentType: "application/json;odata=verbose",
           headers: { "Accept": "application/json; odata=verbose" },
           success: function (dt) {
               $.each(JSON.parse(dt.body).d.results, function (i, ele) {
                   data.results.push({ id: ele.Id, text: ele.Title });
               $("#WFApprovers").select2({ data: data, multiple: true });
               if (success) {
                   success();
           error: function (d, errorCode, errorMessage) {
               if (fail) {
                   fail();
               utils.log(errorMessage);
  error: function (d, errorCode, errorMessage) {
      utils.log(errorMessage);
Melick Rajee http://melick-rajee.blogspot.com

Similar Messages

  • SQD3 select options not fetching all the data?

    Hi abapers,
    standard SDQ3 tcode is not fetching all the data?
    In this standard t.code how to find that for different Select-options, different data retrieval queries have been written?
    where to find the select options conditions are written?
    thans in advance

    This could be an issue as ROWTERMINATOR and FIELDTERMINATOR are not well placed.
    Use FORMAT FILE while using BULK INSERT.

  • People picker are not displaying all the users from the existing Synchronization Connections

    Hello, I need help.
    I have two domains, an old domain and a new domain that were are migrating to.
    I have 2 connections for Users Synchronizations, one to the old domain and one to the new domain.
    Here is what is happening: when I open people picker from any of the web applications only the users that existed in the old domain are showing and not the new users that are been added to the new domain. Basically people picker is displaying old data/users.
    What can I do?

    The People Picker doesn't leverage UPA Sync Connections. Is there a one way or two way trust set up between the domains? If it is one way (where the old trusts the new), then you need to leverage the peoplepicker-searchadforests property: http://technet.microsoft.com/en-us/library/cc263460(v=office.12).aspx.
    You also need to make sure your SharePoint servers have port access to the Domain Controllers in the new domain: https://peoplepicker.codeplex.com.
    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.

  • Rowtype not fetching all the rows

    This my cursor declaration. When the Package is executed it get all records minus 1 (Assumming there are 10 rows to be processed, it ONLY processes 9 records)
    cursor X1 is
    select *
    from NT
    hdr X1%rowtype;
    Below is the procedure call
         open X1;
         fetch X1 into hdr;
         loop
         exit when X1%notfound;
                   fetch X1 into hdr;
                   pkgXX.insrt(hdr);
         end loop;
              commit;
         close X1;

    That makes sense. You 1) fetch a row, 2) check for %notfound, 3) fetch a row and process it. Notice that the row you fetched in 1 was never processed. Try this:
    open X1;
    loop
      fetch X1 into hdr;
      exit when X1%notfound;
      pkgXX.insrt(hdr);
    end loop;
    commit;
    close X1;

  • Lookup in transformation not fetching all records

    Hi Experts,
    In the routine of the transformation of a DSO (say DSO1), i have written a look-up on other DSO (say DSO2) to fetch records. I have used all the key fields of DSO2  in the Select statement, Still the look-up is not fetching all the records in DSO1. There is difference in the aggregated value of the Key Figure of both the DSOs. Please suggest, how can i remove this error.
    Thanks,
    Tanushree

    hi tanushree,
    The code which yu have written in the field routine for lookup is not fetching the data. you can debug the field routine code in the simulation mode of execution of DTP by keeping a break point after the transformation.
    you can test the routine with out actually loading the data..
    double click rule where you have routine and in the below you have option called test routine.
    here you can pass input parameters..
    i hope it will give you an idea.
    Regards
    Chandoo7

  • Fetching all the locked user's list

    Hi All,
    Is there any command in Solaris to fetch all the users whose accounts are locked?
    Regards,
    Gaurav

    The following would also work (in bash), it should show all users without passwords (which might be a better idea since locked accounts also might have 'X' or something else as passwords (useful if you want to disable logins but still be able to run cronjobs as the user)):
    for i in `cat /etc/shadow`; do user=`echo $i |cut -d: -f1`; pw=`echo $i | cut -d: -f2`; if [ `echo $pw | wc -m` != "14" ]; then echo "$user does not have a password"; fi; done.7/M.

  • I want to set up 5 different ipods to sync from one library, but want to be able to control what is synced to each ipod and have it remember that for future synching and just look for new songs and not sync all the other music in the library

    I want to set up 5 different ipods to sync from one library, but want to be able to control what is synced to each ipod and have it remember that for future synching and just look for new songs and not sync all the other music in the library

    Click here for options.
    (58961)

  • My SCCM Client does not show all the tabs in the Config manager control pannel

    Hi All,
    I have a issue Post pushing a installation on a client. It was installed successfully. But i do not get all the options in the control panel as per the below screenshot.
    I reinstalled the client via push from the console during the re installation i got the below errors as per the below screenshot.
    Can any one tell me why is this issue happening.
    I get all the options in my SCCM DP / Site server control panel but not in the client.
    I got the DP role re installed, As well as well as checked the DNS. Iam able to ping from my client machine to the Site server / DP via ip as well as FQDN.
    Can any one please help?
    Gautam.75801

    Got the solution.
    1. Reconfigure the boundary and boundary groups and rebooted the SCCM DP / Site server.
    2. Turn firewall off in the client and uninstall the SCCM setup in the client and Rebooted the client and re install the client via push method from console
    3. Turned off the UAC in the client machine.
    Now i am able to get all the tabs s well as Console shows the server as a client.
    Gautam.75801

  • Officejet Pro 8600 Plus paper tray will not go all the way in so cannot print

    Have loved this printer for almost two years but suddenly the drawer which holds the paper will not go all the way in so cannot print.  Took it to a so-called tech at Office Depot who said that because you cannot open/remove the tray, there is no way to see what is jamming it.  Any thoughts?  My first call for tech support was answered by a tech here in the US who said they had experience with it and it could be fixed and asked dme to call again when I was back in the office and at the printer.  The next four calls were answered overseas and they all had had no experience with this problem.

    Hi maebun,
    Welcome to the hp support forums.
    Thanks for your query.
    Please find the link for fixing paper jam. 
    Hope this helps
    I am a HP Employee.
    The opinions expressed here are my personal opinions, not of HP.
    Make it easier for other people to find solutions, by marking an answer “Accept as Solution” if it solves your problem.
    Click on Thumbs up if my post helped you.

  • IMAP is not downloading all the Incoming emails fully in outlook 2013.

    Hi,
    I have configured IMAP in outlook 2013.Earlier,we are using POP account and now our email account are configured as IMAP in outlook 2013.
    After configured IMAP in outlook 2013,it starts downloading all the mails like Inbox,sent emails etc.But IMAP has not downloaded all the Inbox (incoming)emails.
    I have checked in emails server,there are 4,189  inbox emails but IMAP has downloaded only 2000 inbox emails only.
    The same i have checked in email server for sent items.In email server there are 1,755 sent emails but IMAP downloaded sent emails only 1000 emails.
    Please let me know why IMAP has not downloading all the Incoming mails fully & the sent mails fully.
    Your support is highly appreciated.
    Regards
    Pradeep.R

    Just try to remove the recent update that has been pushed out by Microsfot to Outlook 2013 and Office 365 users. You can do this by following given steps:
    Step 1: Open your start menu and click visit your Control Panel.
    Step 2: Click Programs and Features.
    Step 3: Click View Installed updates.
    Step 4: Locate either the KB2837618 or KB2837643 and remove them.
    Disable the "Show only subcribed folders" option in Outlook.
    Step 1: Right click the name of your account with the issue, then click the IMAP folders link.
    Step 2: Outlook will open a box with IMAP folders. There is a checkbox that says, "When displaying hierarchy in Outlook, show the subcribed folders." Uncheck that box.
    Step 3: Force sending/receiving within Outlook and everything should synchronize up properly.
    Changing the root folder path
    Visit your Account Settings, then Advanced for the mail account that you are having trouble with. This can be located at one of the following:
    Go to Change Account>More Settings>Advanced Tab
    File > Account Settings > Account settings > Change... > More Settings... > Advanced
    Step 1: In the Folders option, look for "Root Folder Path" and enter "INBOX" (with all caps).
    Step 2: Save your setting and force a Send/Receive
    Hope, It will resolve your issue.
    If you have still any doubt, feel free to comment. We will reply you ASAP.

  • HT1349 My songs in iTunes are not playing all the way through on my MAC or my iPod?

    My songs in itunes are not playing all the way through on my MAC

    Quicktime Player should already be installed on the Mac. If you transferred Quicktime from a VAIO it will not run on a Mac -- no PC software will without using a special interface.
    Right click or control+click on one of the files, then > Open with Quicktime Player.
    I already suspect that since these files will  not play completely on any of your devices that you have an incomplete download.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not available in all countries; only apps, books (not audiobooks), music, and t.v. shows (not movies).  Discontinued items not available. For items not included in the iCloud list, or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can redownload your available previous purchases.

  • Hi..can anyone help? Songs on my itunes are not playing to the end? They cut off part way through a song. Its not on all the songs but lots of them? thanks

    Hi..can anyone help? Songs on my itunes are not playing to the end? They cut off part way through a song. Its not on all the songs but lots of them? thanks

    A couple of months ago, I went to the Apple Store to try and sort this problem out. I was told that I was not playing my songs out of an actual music library. I created a library and loaded all of my songs, movies, etc. onto it. I had found that when I synced my songs from the new library onto my itouch, the songs no longer stopped in odd spots or bled into each other. To ensure that most of my songs had been fixed, I played the ones that were the most problematic. Fortunately, the songs play all the way through without any interruption. So far, I have not encountered the same problems that I had posted in my question. I apologize for not knowing the fellow's name who helped me with my iTouch at the Apple Store, but I would like to say how thankful and happy I am now that my iTouch no longer skips to the next song.
    I know that other people have had this same issue with their iPods. If you encounter your music not playing correctly, I would suggest that making a new library and  loading all of your music into the new one may help correct the problem. I hope that this helps.

  • Query should fetch all the query details in the system.

    Hi All
    We  are looking for a query which will fetch all the query details in the system along with the user names either who has created the query or who has run it atleast once.
    If any of the queries are not used for a long time then we  can delete it with the user's/owner's approval.
    Is there anyway we can desing such query .
    Thanks
    Asim

    Hi,
    Thanks for the reply.
    My requirement is that we want to create a new query which should fetch the details information of already existing queries.
    Like who has created that query, how frequently the use it etc...
    Whenever we run the new query it should give information of all other existing queries.
    Thanks and Regards
    Asim

  • How to fetch all the records from ztable

    Hi 
    My program is outbound program.
    According to the requirement i have to fetch all the records from ztable which are not tranmitted before to the third party and once the records are extracted and written to output file they will be marked as 'X' in the "status" field of that ztable for the next days run.
    How to fetch the records.Please suggest me.
    Thanks,
    Neelima

    HI,
    Fetch all the records whose status is equal to 'X' as whatever data is sent to third party system is marked as 'X' in status field of table after sending.
    You need to first fetch the data into internal table using the select statement where status EQ space. You get the data which is not yet transmitted to third part. And later in the program after trasmitting the data to third party modify the Records in the DB table which are transmitted with Staus eq 'X'.

  • Query to fetch all the responsibilities for which OA page is attached

    Hi Team,
    please help me to prepare a query to fetch all the responsibilities for which OA page is attached.
    thanks in advance
    Thanks & Regards,
    Sriram T

    Hi,
    Querys which you have provided was helpful.
    But i was struck with the following issue. As the function is not excluded directly it may be excluded via a menu to the responsibility.
    Even though it is displaying the responsibility name.
    The following query is used to display the responsibility name with menu and function exclusions.
    please help me on this.
    SELECT r.RESPONSIBILITY_NAME
    FROM
    fnd_responsibility_vl r,
    fnd_form_functions f
    WHERE f.function_name = 'VSFFFRMADMN'--f.form_id =p_form_id
    AND r.menu_id IN (SELECT me.menu_id
    FROM fnd_menu_entries me
    START WITH me.function_id = f.function_id
    CONNECT BY PRIOR me.menu_id = me.sub_menu_id)
    and r.menu_id not in (select frf.action_id
    from fnd_resp_functions frf
    where frf.action_id=r.menu_id
    and frf.rule_type='M')
    and f.function_id not in (select frf.action_id
    from fnd_resp_functions frf
    where frf.action_id=f.function_id
    and frf.rule_type='F')
    Thanks
    Sriram T

Maybe you are looking for