Jahia Dev Forum > Add member to the...

0 (0 Good)
0 (0 Bad)

Add member to the multiple groups

by  chintucool »  2013/09/07 15:32

Currently we can add member only to one group, I want to create/implement this functionality so that I can add members to the multiple group in one shot .

Does it need changes in source code or only to the jsps ??

Can I do this by invoking addMember() method of UserGroups class, if yes what parameters I need to pass to this method?

 

Thanks,

  • Add member to the multiple groups
    2013/09/07 15:32

    chintucool <p> Currently we can add member only to one group, I want to create/implement this functionality so that I can add members to the multiple group in one shot .</p> <p> Does it need changes in source code or only to the jsps ??</p> <p> Can I do this by invoking addMember() method of UserGroups class, if yes what parameters I need to pass to this method?</p> <p> &nbsp;</p> <p> Thanks,</p>

  • Number of messages  11
    Registration date Sep 7, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Add member to the multiple groups

    by  shyrkov »  2013/09/10 12:53

    Hello,

    which Jahia version are you referring to?

     

    Kind regards

    Sergiy

  • Re: Add member to the multiple groups
    2013/09/10 12:53

    shyrkov <p> Hello,</p> <p> which Jahia version are you referring to?</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Sep 10, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Add member to the multiple groups

    by  chintucool »  2013/09/10 14:46

    I am using 6.6.1 version.

    Thanks,

    Abhishek

  • Re: Re: Add member to the multiple groups
    2013/09/10 14:46

    chintucool <p> I am using 6.6.1 version.</p> <p> Thanks,</p> <p> Abhishek</p>

  • Number of messages  11
    Registration date Sep 10, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Add member to the multiple groups

    by  shyrkov »  2013/09/16 10:18

    Hello,

    you could use Jahia API to add user to a group:

    org.jahia.services.usermanager.JahiaGroup.addMember(Principal)

     

    and do it for all the groups, you would like a user be member of.

     

    Kind regards

    Sergiy

  • Re: Re: Re: Add member to the multiple groups
    2013/09/16 10:18

    shyrkov <p> Hello,</p> <p> you could use Jahia API to add user to a group:</p> <p> org.jahia.services.usermanager.JahiaGroup.addMember(Principal)</p> <p> &nbsp;</p> <p> and do it for all the groups, you would like a user be member of.</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Sep 16, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Re: Add member to the multiple groups

    by  chintucool »  2013/09/17 11:34

    Thanks, But can you please let me know on which object I need to invoke this method and how to make a Principal argument. I need to do these changes in group_management.jsp which is present in admin directory. To do this, do i need to take 'source code' or I can do this in ROOT directory.?? Thanks, Abhishek
  • Re: Re: Re: Re: Add member to the multiple groups
    2013/09/17 11:34

    chintucool Thanks, But can you please let me know on which object I need to invoke this method and how to make a Principal argument. I need to do these changes in group_management.jsp which is present in admin directory. To do this, do i need to take 'source code' or I can do this in ROOT directory.?? Thanks, Abhishek

  • Number of messages  11
    Registration date Sep 17, 2013
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page