-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[config] Add a config file for permission groups
Moves the configuration of the groups to sortinghat/config/permission_groups.json. The location of the file can be changed with the `SORTINGHAT_PERMISSION_GROUPS_LIST_PATH` environment variable. Signed-off-by: Eva Millán <evamillan@bitergia.com>
- Loading branch information
Showing
7 changed files
with
116 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
releases/unreleased/create-and-assign-users-to-permission-groups.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Assign users to permission groups | ||
category: added | ||
author: Eva Millán <evamillan@bitergia.com> | ||
issue: 849 | ||
notes: | | ||
Users can be assigned to a permission group using the command | ||
`$ sortinghat-admin set-user-group username group`. A user in | ||
a group automatically has the permissions granted to that group. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"groups": { | ||
"admin": { | ||
"core": { | ||
"affiliationrecommendation": ["add", "change", "delete", "view"], | ||
"alias": ["add", "change", "delete", "view"], | ||
"country": ["add", "change", "delete", "view"], | ||
"domain": ["add", "change", "delete", "view"], | ||
"enrollment": ["add", "change", "delete", "view"], | ||
"genderrecommendation": ["add", "change", "delete", "view"], | ||
"group": ["add", "change", "delete", "view"], | ||
"identity": ["add", "change", "delete", "view"], | ||
"individual": ["add", "change", "delete", "view"], | ||
"mergerecommendation": ["add", "change", "delete", "view"], | ||
"organization": ["add", "change", "delete", "view"], | ||
"profile": ["add", "change", "delete", "view"], | ||
"recommenderexclusionterm": ["add", "change", "delete", "view"], | ||
"scheduledtask": ["add", "change", "delete", "view"], | ||
"team": ["add", "change", "delete", "view"], | ||
"custompermissions": ["execute_job"] | ||
} | ||
}, | ||
"user": { | ||
"core": { | ||
"affiliationrecommendation": ["add", "change", "delete", "view"], | ||
"alias": ["add", "change", "delete", "view"], | ||
"country": ["add", "change", "delete", "view"], | ||
"domain": ["add", "change", "delete", "view"], | ||
"enrollment": ["add", "change", "delete", "view"], | ||
"genderrecommendation": ["add", "change", "delete", "view"], | ||
"group": ["add", "change", "delete", "view"], | ||
"identity": ["add", "change", "delete", "view"], | ||
"individual": ["add", "change", "delete", "view"], | ||
"mergerecommendation": ["add", "change", "delete", "view"], | ||
"organization": ["add", "change", "delete", "view"], | ||
"profile": ["add", "change", "delete", "view"], | ||
"recommenderexclusionterm": ["add", "change", "delete", "view"], | ||
"scheduledtask": ["view"], | ||
"team": ["add", "change", "delete", "view"] | ||
} | ||
}, | ||
"readonly": { | ||
"core": { | ||
"affiliationrecommendation": ["view"], | ||
"alias": ["view"], | ||
"country": ["view"], | ||
"domain": ["view"], | ||
"enrollment": ["view"], | ||
"genderrecommendation": ["view"], | ||
"group": ["view"], | ||
"identity": ["view"], | ||
"individual": ["view"], | ||
"mergerecommendation": ["view"], | ||
"organization": ["view"], | ||
"profile": ["view"], | ||
"recommenderexclusionterm": ["view"], | ||
"scheduledtask": ["view"], | ||
"team": ["view"] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters