diff --git a/geomagio/api/secure/metadata.py b/geomagio/api/secure/metadata.py
index be204bc3aa46e21723155d5920257f3f48f196c7..5e4f084622ff72c54eadfdb95e82838bf788e3cc 100644
--- a/geomagio/api/secure/metadata.py
+++ b/geomagio/api/secure/metadata.py
@@ -13,6 +13,7 @@ Configuration:
     ADMIN_GROUP           - delete is restricted the admin group.
     REVIEWER_GROUP        - update is restricted the reviewer group.
 """
+import os
 from typing import List
 
 from fastapi import APIRouter, Body, Depends, Request, Response