diff --git a/common-task/src/main/java/com/merkle/oss/magnolia/setup/task/common/security/util/UserManagerUtil.java b/common-task/src/main/java/com/merkle/oss/magnolia/setup/task/common/security/util/UserManagerUtil.java index c4c561a..c4a0ceb 100644 --- a/common-task/src/main/java/com/merkle/oss/magnolia/setup/task/common/security/util/UserManagerUtil.java +++ b/common-task/src/main/java/com/merkle/oss/magnolia/setup/task/common/security/util/UserManagerUtil.java @@ -62,6 +62,10 @@ public void enable(final User user) { userManager.get().setProperty(user, MgnlUserManager.PROPERTY_ENABLED, "true"); } + public void removeRole(final User user, final Role role) { + userManager.get().removeRole(user, role.getName()); + } + public static class Factory { private final SecuritySupport securitySupport;