Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-95705

Allow non admin user to use Analytics Cloud in DXP

    Details

      Description

      These APIs are used by the AC Portlet:

      READ:

      • com.liferay.portal.kernel.service.ContactService#getContact
      • com.liferay.portal.kernel.service.GroupService#getGroup
      • com.liferay.portal.kernel.service.GroupService#getGroups
      • com.liferay.portal.kernel.service.GroupService#getGroupsCount
        x com.liferay.portal.kernel.service.GroupService#getGtGroups
      • com.liferay.portal.kernel.service.OrganizationService#fetchOrganization
      • com.liferay.portal.kernel.service.OrganizationService#getGtOrganizations
      • com.liferay.portal.kernel.service.OrganizationService#getOrganization
      • com.liferay.portal.kernel.service.OrganizationService#getOrganizations
      • com.liferay.portal.kernel.service.OrganizationService#getOrganizationsCount
      • com.liferay.portal.kernel.service.OrganizationService#getUserOrganizations
      • com.liferay.portal.kernel.service.PortalService#getBuildNumber
      • com.liferay.portal.kernel.service.UserGroupService#fetchUserGroup
      • com.liferay.portal.kernel.service.UserGroupService#getGtUserGroups
      • com.liferay.portal.kernel.service.UserGroupService#getUserGroup
      • com.liferay.portal.kernel.service.UserGroupService#getUserGroups
      • com.liferay.portal.kernel.service.UserGroupService#getUserGroupsCount
      • com.liferay.portal.kernel.service.UserGroupService#getUserUserGroups
        x com.liferay.portal.kernel.service.UserService#getCompanyUsers
        x com.liferay.portal.kernel.service.UserService#getCompanyUsersCount
      • com.liferay.portal.kernel.service.UserService#getCurrentUser
        x com.liferay.portal.kernel.service.UserService#getGtCompanyUsers
        x com.liferay.portal.kernel.service.UserService#getGtOrganizationUsers
        x com.liferay.portal.kernel.service.UserService#getGtUserGroupUsers
      • com.liferay.portal.kernel.service.UserService#getOrganizationUsers
      • com.liferay.portal.kernel.service.UserService#getOrganizationUsersCount
        x com.liferay.portal.kernel.service.UserService#getOrganizationsAndUserGroupsUsersCount
      • com.liferay.portal.kernel.service.UserService#getUserById
      • com.liferay.portal.kernel.service.UserService#getUserGroupUsers
        x com.liferay.portal.security.audit.storage.service.AuditEventService#getAuditEvents
        WRITE
        x com.liferay.portal.kernel.service.CompanyService#updatePreferences (edited)

      x means its specifically checking for admin role and needs to be updated

      Some of the APIs are specifically checking for Company Admin or Administrator permissions. This would need to be changed to another permission to allow AC users who are not administrators to use the portlet.

      See: https://github.com/liferay/liferay-portal/blob/7.1.x/portal-impl/src/com/liferay/portal/service/impl/UserServiceImpl.java#L694
      and
      https://github.com/liferay/liferay-portal/blob/7.1.x/modules/apps/portal-security-audit/portal-security-audit-storage-service/src/main/java/com/liferay/portal/security/audit/storage/service/impl/AuditEventServiceImpl.java#L38

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.X
                Master