diff --git a/kypo2-service-user-and-group/src/main/java/cz/muni/ics/kypo/userandgroup/service/impl/IDMGroupServiceImpl.java b/kypo2-service-user-and-group/src/main/java/cz/muni/ics/kypo/userandgroup/service/impl/IDMGroupServiceImpl.java
index 7d1798acce63f4ce0995af9276c17cc67a61cf8a..7442c80937e359557cb6d4a0476897cd90cc41c4 100644
--- a/kypo2-service-user-and-group/src/main/java/cz/muni/ics/kypo/userandgroup/service/impl/IDMGroupServiceImpl.java
+++ b/kypo2-service-user-and-group/src/main/java/cz/muni/ics/kypo/userandgroup/service/impl/IDMGroupServiceImpl.java
@@ -88,6 +88,7 @@ public class IDMGroupServiceImpl implements IDMGroupService {
             }
             groupInDatabase.setDescription(group.getDescription());
             groupInDatabase.setName(group.getName());
+            groupInDatabase.setExpirationDate(group.getExpirationDate());
             return groupRepository.save(groupInDatabase);
         } else {
             throw new ExternalSourceException("Given idm group is external therefore it cannot be updated");