Skip to content

Commit

Permalink
Return user UUID in LookupUser call
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisSaldabols committed Oct 8, 2024
1 parent 2a0bf5d commit 125a11c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit 125a11c

Please sign in to comment.