Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1947

API Group.replaceMembers() doesn't work with privileges

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None

      Description

      Method Group.replaceMembers(Collection<Subject> newSubjectList, Field field) – you can pass in a Field, but the only field that works is members. If you pass in a readers or updaters field, it throws a SchemaException error, because internal_addMember() is specifically rejecting non-list types.

       

      There is a web service that can replace privileges (WsRestAssignGrouperPrivilegesRequest), but no API equivalent. It would be nice to have an API method to sync privileges using the existing algorithms, rather than having to rewrite it in caller code.

       

        Attachments

          Activity

            People

            • Assignee:
              mchyzer Chris Hyzer
              Reporter:
              cer28 Chad Redman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: