Skip to content

Commit

Permalink
Update README.md for Grouper API feature #42 #6
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Sep 28, 2020
1 parent 2fbcf09 commit db7c3f9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [Testing Installation](#testing-installation)
- [Execution](#execution)
- [Manual Changes](#manual-changes)
- [API Management of Grouper Groups](#api-management-of-grouper-groups)
- [Versioning](#versioning)
- [Changelog](#changelog)
- [Authors](#authors)
Expand Down Expand Up @@ -214,6 +215,27 @@ can be overwritten on the command line:
Note that working templates are provided in the config folder for
[quota](config/quota_manual_template.csv) and [portal](config/portal_manual_template.csv).

### API Management of Grouper Groups

The `add_grouper_groups` currently create and assign privileges to groups
through the Grouper API. It uses the above existing Google Sheet for research
themes and sub-portals. In addition, another
[Google Sheet](https://docs.google.com/spreadsheets/d/12Rhfpz4aWIcOGOOu0Ev4sZNMiXvLr3FSl_83yRd3h4k/edit?usp=sharing)
exists for the quotas. The script will check whether a group exists. If the
`add` flag is provided, it will create the group and assign privileges for
GrouperSuperAdmins and GrouperAdmins. If a group already exists, it will
skip to the privilege assignments. To execute the script:

```
(figshare_patrons) $ python /path/to/parent/folder/ReQUIAM/scripts/add_grouper_groups \
--config config/figshare.ini --grouper_password $password \
--main_themes --sub_portals --quota --add
```

The `main_themes`, `sub_portals` and `quota` flags will conduct checks and
create those sets of groups. Without the `add` flag, it is a dry run. By
default this adjusts a testing Grouper stem `figtest`. Set the `production`
flag to implement on the production stem, `figshare`.

## Versioning

Expand Down

0 comments on commit db7c3f9

Please sign in to comment.