Empty User Roles via API
We would like to be able to empty all user roles using an API call. Currently, User_Roles is the only segment that keeps untouched when the API call object does not contain any roles. This makes it necessary to keep at least one role as a parameter and it makes no sense from the API usability as it actually always returns the full user objets including empty roles arrays when we delete all roles from Alma end-point.
-
Anonymous commented
Our library system includes many libraries, some of which are academic libraries, some are public libraries, and some are specialized libraries. Very often the users are users of both the university and, for example, public libraries. For each library to which users are enrolled, there is a Patron type role in Alma with scope that specific library.
As prescribed by the GDPR, the library system must provide for the deletion of user data when users no longer use library services. Therefore, about twice a year, we need to find the users whose data need to be deleted. As for university users (usually students), we need to delete the data of users who are no longer students, for example, because they have graduated. After getting the list of users who are no longer students, we delete via API all the Patron type roles for all the university libraries. We cannot directly delete the data of these users because if a student has also become a user of one of the public libraries, his or her Patron role at that library(s) should not be deleted.
After this deletion of roles via API, we can delete ONLY those users who have no role left.
The fact that it is not possible to delete all of a user's roles via API complicates quite a bit this whole workflow that is already complex, because we need to obtain a list of users without roles.
Thank you
Vera Dean -
Dear Community,
So far I haven't got any input regarding my last question (published in 28/7/2024).
In order to progress we need to have your input by 31/12/2024, otherwise this idea will be closed.
Thanks,
Uri Beladev
Library Platform, Product Management -
Dear Community,
Thank you for this Idea.
I would appreciate some clarifications about it:
Could you please explain the need of deleting all the user's roles via API? What is it good for? Could you please explain what is the point of having/keeping a user with no roles at all?
I would appreciate it if you could please describe the use-case and provide more details and explain the logic behind this request.
I would also like to understand what you would expect the API will return in a situation when the user has no roles? why an empty roles array makes no sense? and what will make sense in this situation?
Thanks,
Uri Beladev
Product Management -
Marco Naimoli commented
I'm sorry Daniel, but it's still not implemented
-
Daniel Davis commented
I just did this yesterday via API after our sandbox was refreshed to convert most of our librarians to simple Patrons. It is implemented.