As discussed, to simplify managing consistency of proxy<->sponsor links the initial implementation should include a unidirectional link from the proxy user to the sponsor user:
This will allows us to optimize the "check out as proxy" operation and allow to directly look-up sponsor for a given user on the user details pane. To retrieve all proxy users for a given sponsor user we will use search, e.g given sponsor user id "345-678-910":
/users/?query=proxyFor="345-678-910"
Adding a proxy user to a given sponsor user will mean adding sponsor user id to the proxyFor field in the proxy user record.
In order to support work in https://folio-org.atlassian.net/browse/UIU-104#icft=UIU-104.
As discussed, to simplify managing consistency of proxy<->sponsor links the initial implementation should include a unidirectional link from the proxy user to the sponsor user:
{ ... "proxyFor": ["123-456-789", "234-567-890"] ... }
This will allows us to optimize the "check out as proxy" operation and allow to directly look-up sponsor for a given user on the user details pane. To retrieve all proxy users for a given sponsor user we will use search, e.g given sponsor user id
"345-678-910"
:/users/?query=proxyFor="345-678-910"
Adding a proxy user to a given sponsor user will mean adding sponsor user id to the
proxyFor
field in the proxy user record.