RE: how to restrict Liferay DXP, Sites option in control panel.

thumbnail
Gagan Mungi, modified 6 Years ago. New Member Posts: 6 Join Date: 10/9/17 Recent Posts

hi All,

 

i have created one user in liferay and i have given centain permission to view only user and organisation in control panel that is i actually want , however that Sites option is also coming , i checked my permission i didn't select any site releated checkbox , but its automatically .. i want to hide for particular user which i have created.

 

i am attaching .png with this post

 

thumbnail
Nagendra Kumar Busam, modified 6 Years ago. Liferay Master Posts: 678 Join Date: 7/7/09 Recent Posts

create a custom role w/ proper permissions, you should be able to achieve what you need.

 

thumbnail
Gnaniyar Zubair, modified 6 Years ago. Liferay Master Posts: 724 Join Date: 12/19/07 Recent Posts

Hi Nagendra,

 

It willl be helpful for others if you write the steps to do the proper pemission to disable the Site hide permission.

 

- Zubair

thumbnail
Gagan Mungi, modified 6 Years ago. New Member Posts: 6 Join Date: 10/9/17 Recent Posts

Hi Nagendra,

 

PFA, i have given certain permission , can you please provide proper permission ,so i can do easily. thank you 

thumbnail
Nagendra Kumar Busam, modified 6 Years ago. Liferay Master Posts: 678 Join Date: 7/7/09 Recent Posts

Attaching screen shots for the custom role I have created.

 

 

 

thumbnail
Olaf Kock, modified 6 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

Note that you still might get permissions through the generic "User" role, or through the implicit "Site Member".

What's the content that you can see in that Sites/Sites section that is visible? This might give a hint as to which path the permission comes through.

thumbnail
Gagan Mungi, modified 6 Years ago. New Member Posts: 6 Join Date: 10/9/17 Recent Posts
Hi Olaf,
 
I have checked that , i have defined these Sites in "Default User Assoication" because of that  when i am creating new user and assign above role for viewing only  "user and organization" tab ,however "Sites" option automatically coming .
Now my different concern is "how can i restrict those default site would not be assign for manually created user . however we want assign those default site for other users which we are importing from LDAP.

 

Actual:

Control panel related Site option shown to perticuler user.

 

Expected:

Control panel related Site option should not shown to perticuler user.

thumbnail
Olaf Kock, modified 6 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Gagan Mungi:
I have checked that , i have defined these Sites in "Default User Assoication" because of that  when i am creating new user and assign above role for viewing only  "user and organization" tab ,however "Sites" option automatically coming .

That seems to be the cause: "Default User Association" means that all users are member of those sites, and this is how they get the permissions on a different way than through the default roles.

I currently don't have the time to try a workaround, but maybe it helps knowing where the behavior comes from. I'm not sure if a simple change in the default permissions will help (e.g. in "Site Member") or if more is needed. I hope someone finds the time to try out before I do...

thumbnail
Gagan Mungi, modified 6 Years ago. New Member Posts: 6 Join Date: 10/9/17 Recent Posts

Hi  Nagendra,

 

i have already assign same roles for particular user .. please add sites in Default user Associations and login with created user .. Sites option will come.