Assign permissions on creating web contentAssign permissions on creating web contenthttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1193603822024-03-29T10:24:06Z2024-03-29T10:24:06ZRE: Assign permissions on creating web contentA Ghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1193662052020-06-11T08:01:14Z2020-06-11T08:01:14ZOk! Thank you very much. I am going to try it!A G2020-06-11T08:01:14ZRE: Assign permissions on creating web contentChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1193642032020-06-10T16:28:32Z2020-06-10T16:28:32ZYou can either do this in a JournalArticleServiceWrapper or in a workflow. <br /><a href="https://help.liferay.com/hc/en-us/articles/360018159951-Overriding-Liferay-Services-Service-Wrappers-">https://help.liferay.com/hc/en-us/articles/360018159951-Overriding-Liferay-Services-Service-Wrappers-</a><br />To set permissions you can use ResourcePermissionLocalService<br /><a href="https://docs.liferay.com/portal/7.0/javadocs/portal-kernel/com/liferay/portal/kernel/service/ResourcePermissionLocalService.html">https://docs.liferay.com/portal/7.0/javadocs/portal-kernel/com/liferay/portal/kernel/service/ResourcePermissionLocalService.html</a><br />Map<Long, String[]> roleIdsToActionIds = new HashMap<>();<br />// Determine ids of roles to give e.g. View rights and put them in the map.<br />roleIdsToActionIds.put(roleId, new String[] { ActionKeys.VIEW });<br />ResourcePermissionLocalServiceUtil.setResourcePermissions(article.getCompanyId(), JournalArticle.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(article.getResourcePrimKey()), roleIdsToActionIds);Christoph Rabel2020-06-10T16:28:32ZAssign permissions on creating web contentA Ghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1193603812020-06-10T15:47:41Z2020-06-10T15:47:41ZHello,<br />I am looking for some information about how to programatically assign permissions to a web content at the same time it is created by certain user. The main goal is that the user do not have to configure them manually. These permissions could be ,for example, those which are assigned to the web content's c