Skip to Content
author's profile photo Former Member
Former Member

User Selection under Permissions

I'm uploading a set of documents programatically to a folder (an instance of ICollection). I need to set the permissions to the folder. But before I could set the permissions, I want the user to select a bunch of users using the "User Selection Search" User interface. Can it be done? If so, what is the iView that I could call from my JSP? And how can I retrieve the selected users?

Any help is appreciated,



Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Sep 26, 2005 at 03:42 PM

    Hi Mahesh,

    just use <i></i> as a HTMLB component. You can define the selection mode (single/multiple), for instance:


    the kind of principals to search for on an include/exclude basis:

    peoplePicker.setSearchFor(UMEPrincipalType.USER, true);

    After the user has chosen some users, they are listed in the input field and to be read from your component as usual, for instance (the parameter is the ID as usual):

    PeoplePicker peoplePickerINPUT = (PeoplePicker)dynPage.getComponentByName("_peoplePickerSingleSelection" + CLASSNAME);

    Hope it helps


    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

    Add comment
    10|10000 characters needed characters exceeded