How to hide sensitive field from Admin without restricting administrative access?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Azraelz
    Junior Member
    • Oct 2025
    • 2

    #1

    How to hide sensitive field from Admin without restricting administrative access?

    My users want admins to not have access to read those sensitive fields, although admin still need to have access to the administration menu for the purpose of updating features and system management.
  • rabii
    Active Community Member
    • Jun 2016
    • 1339

    #2
    You need to write code or use third party extension - check this out below from eymen-elkum


    Espocrm, Description: 1. Add some permissions to Admin User,The user can control the program through these permissions only. Activation Extention:users -> detail || edit -> Limited Admin Permissions. Read information about the extension . Release notes are available here.
    Rabii
    EspoCRM & Web Dev

    🔗 See what I’ve built for EspoCRM

    Comment

    • Azraelz
      Junior Member
      • Oct 2025
      • 2

      #3
      any idea which file i can edit for custom it?

      Comment

      • rabii
        Active Community Member
        • Jun 2016
        • 1339

        #4
        It dependents on what you want to achieve - it is not just one file you will need to dive into espocrm codebase and figure out how it work then you can customise it. an alternative is to use metadata to define scope access level / field access level to the admin.

        Rabii
        EspoCRM & Web Dev

        🔗 See what I’ve built for EspoCRM

        Comment

        • jamie
          Senior Member
          • Aug 2025
          • 126

          #5
          Originally posted by Azraelz
          My users want admins to not have access to read those sensitive fields, although admin still need to have access to the administration menu for the purpose of updating features and system management.
          genraly its been that if you don't trust your system admin you have bigger problems, but you could try something with a complicated teams setup

          Comment

          • yuri
            EspoCRM product developer
            • Mar 2014
            • 9491

            #6
            You can also utlize output filters. Create a filter for a particular entity type and clear particular fields for certain users (you can match the user by the ID or indtroduce a custom field for the User entity type, e.g. a boolean 'isRestrictedAdmin').



            Note that it will be only a lite protection, a half measure. A skilfull admin user will be able to utilize features like formula, installable extantions, to obtain data if they really want it.
            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


            • yuri
              yuri commented
              Editing a comment
              Additional protection measures.

              1. Config parameter 'adminUpgradeDisabled' – disables the ability to upgrade or upload extensions via the UI;

              2. Config parameter 'restrictedMode' – for 'admin' users disables the ability to upgrate, install extensions, as well as to change certain settings parameters (which parameters are disabled is defined by metadata, hence you can restrict specific paramters).

              Only 'super-admin' user will have full access. The super admin user cannot be created via the UI, you need to change the user type in the database.
          Working...