Data segregation on portal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhilash.kumar.niit
    Senior Member
    • Sep 2024
    • 113

    #1

    Data segregation on portal

    Hi,

    i have created portals on ESPO crm say
    Portal 1
    Portal 2

    now i have some data in portal 1 and some data in portal 2. all the data is available in all portal can i make data portal specefic?

  • yuri
    Member
    • Mar 2014
    • 9033

    #2
    Hi,

    It requires a bit of coding.

    Example for KB Article that uses the Portal field:



    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • abhilash.kumar.niit
      abhilash.kumar.niit commented
      Editing a comment
      Hi,
      i am not able to create a relation with the portal is there any other way to implement this?

    • PavelZ
      PavelZ commented
      Editing a comment
      May I ask if there are any plans to address this issue in a future ESPOCRM update, perhaps by allowing it to be configured through admin settings?
  • abhilash.kumar.niit
    Senior Member
    • Sep 2024
    • 113

    #3
    Do i need to do code for all the objects? or is there any possibility to apply it across all the objects/data?

    Comment

    • yuri
      Member
      • Mar 2014
      • 9033

      #4
      I think yes. You can have the same class but define it in metadata for every needed entity type.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • IshitaRana
        Junior Member
        • Apr 2025
        • 4

        #5
        Hi,

        I’m trying to implement portal-specific access control for the Case entity in EspoCRM, similar to how it’s done for KnowledgeBaseArticle (as seen in Espo\Modules\Crm\Classes\Select\KnowledgeBaseArtic le\AccessControlFilters\Mandatory).

        In the KnowledgeBaseArticle implementation, a relation like knowledgeBaseArticle_portal is used to filter records based on portalId. However, in my case, I’m unable to create any link (relationship) between the Case entity and the Portal entity via the admin UI or field manager. When trying to add a link or foreign field, the Portal entity does not appear as a target option. This prevents me from creating a join table like case_portal to replicate the access control logic from KnowledgeBaseArticle.

        Could you please clarify:
        • Is there a restriction or limitation preventing the Portal entity from being linked to other entities?
        • Is there an alternative recommended approach to establish portal-specific filtering for entities like Case?
        Thanks!

        Comment

        • yuri
          Member
          • Mar 2014
          • 9033

          #6
          > Is there a restriction or limitation preventing the Portal entity from being linked to other entities?

          It's not possible via the admin UI. It requires manually defining links and a link-multiple field in metadata.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          Working...