Foros de discusión

Directory Portlet -- Restricting to view only Community members

Danton Brown, modificado hace 15 años.

Directory Portlet -- Restricting to view only Community members

New Member Mensaje: 1 Fecha de incorporación: 9/05/08 Mensajes recientes
Currently working on a community for a client that needs to view a list of other community members contacts.

Poking through the 'Directory' portlet it seems as though it will display this information, but for all users on the system. Is there a way to delegate, using this portlet or another method, the visibility that a user has to that directory listing. I need to allow members of this community the ability to view the contacts of only those members that are also a member of that community.

Thanks to everyone ahead of time for assisting in this.

-Danton
Peter Hovens, modificado hace 15 años.

RE: Directory Portlet -- Restricting to view only Community membe

Junior Member Mensajes: 29 Fecha de incorporación: 31/03/08 Mensajes recientes
Hello Danton,

Did you get a solution to this? It seems weird that the directory-portlet is shown under category 'community' though showing all users in the system. I haven't been able to restrict the results to only members of the community via rules but might still be missing something here...

Thnx in advance..
Regards,
Peter
Stephane Salomon Urdy, modificado hace 15 años.

RE: Directory Portlet -- Restricting to view only Community membe

New Member Mensaje: 1 Fecha de incorporación: 30/12/08 Mensajes recientes
Hi Guys,

I subscribed here in order to find a answer to that question, and could not find the answer.
I hope a Liferay specialists could answer this, however I have found a workaround last night near midnight, it's ugly but it works.

This is the structure:
a community -A-
organizations -1- -2- -3- belonging under this community
a bunch of users automatically affected [default associations] to the community A
the users are then affected to the organizations either -1- or -2- or -3-

I had the same pb, I could not see the credentials of the other users even though they belong to the same organization and community.
I could see their names but when clicking on the name, I had the "you don't have permissions" message.

So, after breaking my head on trying to provide additional rights to the "community member" role which would had made sense to me, I finally tried to add additional rights to the "Organization Member" role.

As the Portal Administrator user:
-Edit the "Organization Member" role
-Add Portlet Permission
Adding the [Enterprise Admin portlet with "manage user" rights: Organization->Action->"Manage Users" box]
to the Organization Member role solved the pb of users of the same Organization and community not being able to see others credentials.

This allows to see the credentials of any users in ANY organization, that might not be what we want to do, I just wanted to allow users of the same community to see each others credentials.

Hope it helped,

Kind regards,

Stephane

PS: please kindly contact me via email if you have a more elegant solution to this pb.
Stephane-DOT-urdy-AT-googlemail-DOT-com
thumbnail
Krati Gupta, modificado hace 13 años.

RE: Directory Portlet -- Restricting to view only Community membe

Regular Member Mensajes: 119 Fecha de incorporación: 5/12/08 Mensajes recientes
Hi Stephen,

I had tried your solution but doesn't work for me ,please help me .
my requirement is when I search name of user through search box (ie search portlet) if will give me the name of user but when I clicked to know their details it will give me You do not have the roles required to access this portlet. .

Please help how to solve this ..emoticon
thumbnail
Milan Palian, modificado hace 13 años.

RE: Directory Portlet -- Restricting to view only Community membe

Junior Member Mensajes: 43 Fecha de incorporación: 10/12/09 Mensajes recientes
Krati Gupta:

my requirement is when I search name of user through search box (ie search portlet) if will give me the name of user but when I clicked to know their details it will give me You do not have the roles required to access this portlet. .


Same here, how do we allow a community member to view the details?
thumbnail
Andrés Cerezo, modificado hace 13 años.

RE: Directory Portlet -- Restricting to view only Community membe

Junior Member Mensajes: 92 Fecha de incorporación: 11/11/10 Mensajes recientes
Try adding add-default-resource in liferay-portlet.xml, here you have an example


<portlet>
<portlet-name>nameofportlet</portlet-name>
<icon>/icon.png</icon>
.
.
.
<add-default-resource>true</add-default-resource>
</portlet>
thumbnail
David Kit, modificado hace 12 años.

RE: Directory Portlet -- Restricting to view only Community membe

New Member Mensajes: 23 Fecha de incorporación: 4/02/10 Mensajes recientes
I'm a little weirded out by this one as well, since the Directory was sitting in the "Community" category, I was thinking it was meant to be showing community specific information...
Adrien Duvignau, modificado hace 12 años.

RE: Directory Portlet -- Restricting to view only Community membe

New Member Mensajes: 12 Fecha de incorporación: 4/10/11 Mensajes recientes
I am trying to develop a jsp hook to get only community members ? Nobody already did it or have an idea ?
A jsp hook is it a good way ?
Thanks
Xav NYC, modificado hace 11 años.

RE: Directory Portlet -- Restricting to view only Community membe

New Member Mensajes: 23 Fecha de incorporación: 27/09/12 Mensajes recientes
Hi Adrien,

I'm having the same need. Did you develop that hook? Would you be willing to make it availale to the community?

The original post was in 2008, we are almost in 2013. i'm a bit surprised that this needs has not been addressed yet by the Liferay team. it seems like a pretty standard need to me.

Thanks.