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.

       

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
                Reporter:
                chad.redman@at.internet2.edu Chad Redman (unc.edu)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: