From 125a11cbc5c825552cac765de036c090fc5aff8f Mon Sep 17 00:00:00 2001 From: Janis Saldabols Date: Tue, 8 Oct 2024 12:37:14 +0300 Subject: [PATCH] Return user UUID in LookupUser call --- .../org/folio/ncip/services/FolioLookupUserService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/folio/ncip/services/FolioLookupUserService.java b/src/main/java/org/folio/ncip/services/FolioLookupUserService.java index 6066ea9..7522eff 100644 --- a/src/main/java/org/folio/ncip/services/FolioLookupUserService.java +++ b/src/main/java/org/folio/ncip/services/FolioLookupUserService.java @@ -28,6 +28,7 @@ import org.extensiblecatalog.ncip.v2.service.UserPrivilege; import org.extensiblecatalog.ncip.v2.service.UserPrivilegeStatus; import org.extensiblecatalog.ncip.v2.service.UserPrivilegeStatusType; +import org.extensiblecatalog.ncip.v2.service.Version1UserIdentifierType; import org.folio.ncip.Constants; import org.folio.ncip.FolioNcipException; import org.folio.ncip.FolioRemoteServiceManager; @@ -118,7 +119,11 @@ private LookupUserResponseData constructResponse(LookupUserInitiationData initDa LookupUserResponseData responseData = new LookupUserResponseData(); try { - + + UserId userId = new UserId(); + userId.setUserIdentifierValue(userDetails.getString("id")); + responseData.setUserId(userId); + if (responseData.getUserOptionalFields()==null) responseData.setUserOptionalFields(new UserOptionalFields());