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

Prevent duplicate users/groups/roles in policy items while creating/updating policies via REST

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Ranger
    • None

    Description

      Policy items such as below should be prevented when created via REST as they are prevented when created using UI

       
      
      "policyItems": [ { "accesses": [ { "type": "read", "isAllowed": true }, { "type": "select", "isAllowed": true } ], "users": [], "groups": [ "group1", "group1", "group1" ], "roles": [ "role1", "role2", "role1" ], "conditions": [], "delegateAdmin": false } ]
       
      

       

      Attachments

        Activity

          People

            fateh288 Fateh Singh
            fateh288 Fateh Singh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m