[MODUSERSKC-13] User policy remains after user deleted Created: 04/Jan/24 Updated: 05/Feb/24 |
|
| Status: | In Review |
| Project: | mod-users-keycloak |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Bug | Priority: | TBD |
| Reporter: | Yauhen Viazau | Assignee: | Roman Leshchenko |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | back-end, epam-eureka | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue links: |
|
||||||||
| Sprint: | Eureka Sprint 44, Eureka Sprint 45 | ||||||||
| Story Points: | 2 | ||||||||
| Development Team: | Eureka | ||||||||
| RCA Group: | TBD | ||||||||
| Description |
|
Overview: User policy remains after user deleted Steps to Reproduce:
Expected Results: No user policy for deleted user found Actual Results: The same policy that was found on Step 4 for a user remains after this user is deleted Additional Information: Happens on both "evrk" and "Demo" envs Interested parties: |
| Comments |
| Comment by Roman Leshchenko [ 30/Jan/24 ] |
|
Regarding endpoints for verrification: 1. Policy GET /policies?limit=1000&query=name=<<*created user *ID>>, ** changed in https://folio-org.atlassian.net/browse/MODROLESKC-131 Other resources can be verified: curl --location '$host/roles/users/$userID' \--header 'Accept: application/json' \--header 'x-okapi-token: $token --header 'x-okapi-tenant: $tenant' User-capability-set: curl --location '$host/users/capability-sets?query=userId=={userID}&limit=10&offset=0' \--header 'Accept: application/json' \--header 'x-okapi-token: $token --header 'x-okapi-tenant: $tenant' User-capabilities: curl --location $host/users/capabilities?query=userId=={userID}&limit=10&offset=0' \--header 'Accept: application/json' \--header 'x-okapi-token: $token --header 'x-okapi-tenant: $tenant'
|
| Comment by Yauhen Viazau [ 05/Feb/24 ] |
|
Tested on “evrk“ environment - works as expected When a user is deleted, the following entities related to this user are also deleted automatically:
See example: |