Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3550

support for using user/tag attributes in row-filter expressions and conditions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.3.0
    • plugins
    • None

    Description

      Enhancing row-filtering (introduced in Ranger 0.6.0 - RANGER-908) to enable use of user attributes in filter expressions can help address a wider set of use cases, including the following: 

      1. restrict users to see only records of the department they belong to:
        dept = '${{USER.dept}}'
      1. restrict users to see only records assigned to them:
        assignee = '${{USER._name}}'

       

      In addition, it will be useful to be able to refer user/tag attributes in condition expressions, as shown in following examples:

      1. allow access only for full-time users:
        USER.employeeType == 'full-time'
      1. allow access only if VISIBILITY tag has attribute type set to public:
        TAGS.VISIBILITY.level == 'public'

      Attachments

        Issue Links

          Activity

            People

              madhan Madhan Neethiraj
              madhan Madhan Neethiraj
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: