Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Danton Brown
Directory Portlet -- Restricting to view only Community members
May 9, 2008 8:29 AM
Answer

Danton Brown

Rank: New Member

Posts: 1

Join Date: May 9, 2008

Recent Posts

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
RE: Directory Portlet -- Restricting to view only Community membe
June 30, 2008 1:56 PM
Answer

Peter Hovens

Rank: Junior Member

Posts: 29

Join Date: March 31, 2008

Recent Posts

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
RE: Directory Portlet -- Restricting to view only Community membe
December 30, 2008 7:51 AM
Answer

Stephane Salomon Urdy

Rank: New Member

Posts: 1

Join Date: December 30, 2008

Recent Posts

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
Krati Gupta
RE: Directory Portlet -- Restricting to view only Community membe
January 13, 2011 3:14 AM
Answer

Krati Gupta

Rank: Regular Member

Posts: 113

Join Date: December 5, 2008

Recent Posts

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
Milan Palian
RE: Directory Portlet -- Restricting to view only Community membe
March 29, 2011 2:15 AM
Answer

Milan Palian

Rank: Junior Member

Posts: 43

Join Date: December 10, 2009

Recent Posts

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?
Andrés Cerezo
RE: Directory Portlet -- Restricting to view only Community membe
March 29, 2011 2:37 AM
Answer

Andrés Cerezo

Rank: Junior Member

Posts: 92

Join Date: November 11, 2010

Recent Posts

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>
David Kit
RE: Directory Portlet -- Restricting to view only Community membe
July 5, 2011 11:36 PM
Answer

David Kit

Rank: New Member

Posts: 23

Join Date: February 3, 2010

Recent Posts

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
RE: Directory Portlet -- Restricting to view only Community membe
December 7, 2011 8:33 AM
Answer

Adrien Duvignau

Rank: New Member

Posts: 12

Join Date: October 4, 2011

Recent Posts

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
RE: Directory Portlet -- Restricting to view only Community membe
December 10, 2012 10:14 AM
Answer

Xav NYC

Rank: New Member

Posts: 22

Join Date: September 27, 2012

Recent Posts

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.