I get this error when I’m trying to make an appointment
{
“id”: “mosip.pre-registration.booking.book”,
“version”: “1.0”,
“responsetime”: “2025-11-14T10:11:26.918Z”,
“response”: null,
“errors”: [
{
“errorCode”: “PRG_APP_015”,
“message”: “Requested application id does not belong to the user”
}
]
}
i investigated the code and i found the problem here
private void userValidation(ApplicationEntity applicationEntity) {
String authUserId = authUserDetails().getUserId();
List<String> list = listAuth(authUserDetails().getAuthorities());
if (list.contains("ROLE_INDIVIDUAL")) {
log.info("sessionId", "idType", "id", "In userValidation method of ApplicationService with applicationId "
+ applicationEntity.getApplicationId() + " and userID " + authUserId);
if (!authUserDetails().getUserId().trim().equals(applicationEntity.getCrBy().trim())) {
throw new PreIdInvalidForUserIdException(ApplicationErrorCodes.PRG_APP_015.getCode(),
ApplicationErrorMessages.INVALID_APPLICATION_ID_FOR_USER.getMessage());
}
}
}
I see that it tries to compare the email of who created the application and the userId from authUserDeatails which is the data from the token comming form keycloack.
is there any speceific configuaration to pass this part
thanks
i’m on v1.2.0.2