diff --git a/modules/charon-core/src/main/java/org/wso2/charon3/core/extensions/RoleManager.java b/modules/charon-core/src/main/java/org/wso2/charon3/core/extensions/RoleManager.java index a3637ed59..7e1409bac 100644 --- a/modules/charon-core/src/main/java/org/wso2/charon3/core/extensions/RoleManager.java +++ b/modules/charon-core/src/main/java/org/wso2/charon3/core/extensions/RoleManager.java @@ -21,6 +21,7 @@ import org.wso2.charon3.core.exceptions.BadRequestException; import org.wso2.charon3.core.exceptions.CharonException; import org.wso2.charon3.core.exceptions.ConflictException; +import org.wso2.charon3.core.exceptions.ForbiddenException; import org.wso2.charon3.core.exceptions.NotFoundException; import org.wso2.charon3.core.exceptions.NotImplementedException; import org.wso2.charon3.core.objects.Role; @@ -129,7 +130,8 @@ RolesGetResponse listRolesWithPost(SearchRequest searchRequest) * @throws NotImplementedException Functionality no implemented exception. */ default Role patchRole(String roleId, Map> patchOperations) - throws NotImplementedException, BadRequestException, CharonException, ConflictException, NotFoundException { + throws NotImplementedException, BadRequestException, CharonException, ConflictException, NotFoundException, + ForbiddenException { throw new NotImplementedException("patchRole method is not implemented"); } diff --git a/modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/endpoints/RoleResourceManager.java b/modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/endpoints/RoleResourceManager.java index ffeb4319b..26d8c3500 100644 --- a/modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/endpoints/RoleResourceManager.java +++ b/modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/endpoints/RoleResourceManager.java @@ -32,6 +32,7 @@ import org.wso2.charon3.core.exceptions.BadRequestException; import org.wso2.charon3.core.exceptions.CharonException; import org.wso2.charon3.core.exceptions.ConflictException; +import org.wso2.charon3.core.exceptions.ForbiddenException; import org.wso2.charon3.core.exceptions.InternalErrorException; import org.wso2.charon3.core.exceptions.NotFoundException; import org.wso2.charon3.core.exceptions.NotImplementedException; @@ -613,7 +614,7 @@ private SCIMResponse updateWithPatchOperations(String existingRoleId, List