Description

"Add or remove grouper privileges" will add or remove privileges for a subject and (group or stem). If you are adding a privilege and it already exists (immediate privilege), then it will not fail, and it will notify you in the response (still considered a success). If you are removing a privilege, and there was no immediate privileges to remove, it will be a success, and will notify you by response code. If you remove a privilege, and there is an "effective" privilege still there (which means the subject has the privilege, just not directly), it will be a success, and you will be notified via response code.

Features

  • Will only edit the privileges the web service user (or actAs) is allowed to edit
  • Lookup subjects/members by subject lookup (by id, source, identifier, etc)
  • Lookup groups/stems by group lookup or stem lookup (name or uuid)
  • Returns subject information of the subject
  • Returns the group or stem information
  • Can actAs another user
  • Failsafe, will not fail if adding a privilege that is already there, or removing one that is already gone
  • Descriptive response codes give information about the existing privileges
  • You can pass in multiple privileges (privilegeNames) to assign.  Each privilege name will be assigned to each subject.  So if you pass in 2 privileges, and 4 subjects, there will be 8 assignments.  Note, the privilegeType is a one to many with privilegeName, so it is optional and can be derived from the privilege names passed in.

Assign grouper privileges Lite service

  • Accepts one subject, one privilege type and name, if allowed, and one group or stem lookup
  • Documentation: SOAP (click on assignGrouperPrivileges), REST (click on assignGrouperPrivileges)
  • For REST, a request body is required (probably via POST)
  • REST request (colon is escaped to %3A): PUT (or POST) /grouper-ws/servicesRest/v1_4_000/grouperPrivileges
  • (see documentation above for details): Request object, response object
  • Response codes
  • Samples (all files with "Lite" in them, click on "download" to see file)

Assign grouper privileges service

  • Accepts multiple subjects, multiple privileges, if allowed, and one group or stem lookup
  • Documentation: SOAP (click on assignGrouperPrivileges), REST (click on assignGrouperPrivileges)
  • For REST, a request body is required (probably via POST)
  • REST request (colon is escaped to %3A): PUT (or POST) /grouper-ws/servicesRest/v1_6_000/grouperPrivileges
  • (see documentation above for details): Request object, response object
  • Response codes
  • Samples (all files with "Lite" in them, click on "download" to see file)
  • No labels