Permissions: Add custom roles to "Viewable by" dropdownPermissions: Add custom roles to "Viewable by" dropdownhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1198496422024-03-29T02:06:55Z2024-03-29T02:06:55ZPermissions: Add custom roles to "Viewable by" dropdownAndré Bräklinghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1198496412020-08-27T11:32:01Z2020-08-27T11:32:01ZHello everybody.<br /><br />We are using Liferay DXP 7.1 and wonder, <strong><span style="font-size: 18px;">if it is possible to add custom roles to the "Viewable by" dropdown which is shown if new content is added, and if it is possible to define a specific default selection there. </span></strong><span style="font-size: 18px;">Of course, I did some initial research, but I just found some discussions related to Liferay 6.x and accordingly hooks as solution. Please find a further description and the reason why we need such a functionality below.</span><br /><br />Thanks in advance!<br />André<br /><br /><strong>Further description and explanation:</strong><br /><br />If we add new content to one of our sites, e.g., Web Contents, Blog Entries or Documents, Liferay shows a "Permission" section with a "Viewable by" checkbox and additional permission options ("More options") at the bottom of the editor. See this screenshot taken from the Web Content Editor:<img src="/documents/portlet_file_entry/14/image--tempRandomSuffix--fYpafGhA.png/2f68c0e3-5775-c959-b792-c9b74adec920" /><br />This is very helpful to set some initial permissions, but it is limited to Anyone (Guest), Site Member and Owner. In our system, we are using an additional role (let's call it "Community Member"), which is very important for our sites. We are using the roles this way:<ul style="list-style: disc outside;"><li>Guest: Just to make public content visible on public pages.</li><li>Site Member: Registered users who just get a brief overview of the site.</li><li>Community Member: Paid subscribers who get full access to all contents of the site.</li><li>Owner: Work in progress/Editor wants to define very specific permission settings by using the Permissions menu.</li></ul><br />If an editor wants to create content for Community Members only, currently the editor has to choose Owner and then grant VIEW via the permissions menu, which is cumbersome and error-prone. It would be much easier, if the editor is able to select the role Community Member directly, or if we even could set the Community Member role by d