[MODUSERS-116] Disallow additional properties for users Created: 29/Apr/17 Updated: 05/May/20 Resolved: 05/May/20 |
|
| Status: | Closed |
| Project: | mod-users |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Bug | Priority: | P4 |
| Reporter: | Hongwei Ji | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | back-end, compatibility-breaking, triaged | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Sprint: | |
| Development Team: | Prokopovych |
| Description |
|
When creating a user from UI, noticed that "available_patron_groups" is saved in users table as well. Per slack discussion, it seems not by design. Below is an example. You can access it through API call at http://folio-uidemo.aws.indexdata.com:9130/users/ceb87f57-e276-4324-a2e4-e35646b67184 in browser with Restly plugin to provide X-Okapi-Tenant and X-Okapi-Token.
{
"username":"bob43",
"id":"ceb87f57-e276-4324-a2e4-e35646b67184",
"active":true,
"patron_group":"ea75cf47-f561-4971-8722-934892b10db9",
"personal":{
"last_name":"bob4",
"first_name":"bob4",
"email":"bob4@bob4.com"
},
"available_patron_groups":[
{
"id":"ea75cf47-f561-4971-8722-934892b10db9",
"desc":"On-campus",
"group":"on_campus"
},
{
"id":"43cc164e-b8c3-4d55-9a8a-13abaea3d951",
"desc":"Off-campus",
"group":"off_campus"
},
{
"id":"2c138e1d-060e-4bc3-ac1b-8e2734fa322d",
"desc":"Other",
"group":"other"
}
]
}
|