diff --git a/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/SampleImmutable.java b/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/SampleImmutable.java
index 9bf77a28e3aad24aa34bd10e15cf200eaebd7ec8..0d4799b2fa0186575f96cc36f63babf0027965ec 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/SampleImmutable.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/SampleImmutable.java
@@ -110,6 +110,12 @@ public class SampleImmutable implements ISampleImmutable
         return sample.getCode();
     }
 
+    @Override
+    public String getPermId()
+    {
+        return sample.getPermId();
+    }
+
     @Override
     public List<ISampleImmutable> getContainedSamples()
     {
diff --git a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/internal/v1/ISampleImmutable.java b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/internal/v1/ISampleImmutable.java
index f015e758904cdc09a3a3e3ce37e9dced56d18fdd..c39a6e73d59122c1f573becef04d079bc69b9727 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/internal/v1/ISampleImmutable.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/internal/v1/ISampleImmutable.java
@@ -67,4 +67,8 @@ public interface ISampleImmutable
      */
     List<ISampleImmutable> getContainedSamples();
 
+    /**
+     * Returns the permId of this sample.
+     */
+    String getPermId();
 }