diff --git a/src/coursebox.egg-info/PKG-INFO b/src/coursebox.egg-info/PKG-INFO
index 601c926577f65bb89555a465051e35ea11b460cf..2e4a9bb2ec74de76e3ba6263eef22600030e3d98 100644
--- a/src/coursebox.egg-info/PKG-INFO
+++ b/src/coursebox.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: coursebox
-Version: 0.1.18.9
+Version: 0.1.18.10
 Summary: A course management system currently used at DTU
 Home-page: https://lab.compute.dtu.dk/tuhe/coursebox
 Author: Tue Herlau
diff --git a/src/coursebox/__init__.py b/src/coursebox/__init__.py
index 7648fd4ab812fe50071f72882a594bd36fdc5c5b..790ab999fff754e7ff4531055b8dd9e72c3dc88e 100644
--- a/src/coursebox/__init__.py
+++ b/src/coursebox/__init__.py
@@ -5,4 +5,6 @@
 from coursebox.setup_coursebox import setup_coursebox
 from coursebox.core.info_paths import get_paths
 from coursebox.core.info import class_information
+from coursebox.admin.gitlab import sync_tas_with_git
+
 # from coursebox.core import info_paths
diff --git a/src/coursebox/admin/gitlab.py b/src/coursebox/admin/gitlab.py
new file mode 100644
index 0000000000000000000000000000000000000000..159d589785e3a19db00ec769b89ebc92d2e1963f
--- /dev/null
+++ b/src/coursebox/admin/gitlab.py
@@ -0,0 +1,56 @@
+import gitlab
+import gitlab.const
+from urllib.parse import urlparse
+
+domain = urlparse('http://www.example.test/foo/bar').netloc
+print(domain) # --> www.example.test
+
+def sync_tas_with_git():
+    from coursebox import class_information # Put this here so information is synced.
+    info = class_information()
+    url = info['project_correction_url']
+    domain = urlparse(url).netloc
+
+    # curl --header "PRIVATE-TOKEN: glpat--NYfBQfTS9JW2G7uPmM2" "https://gitlab.example.com/api/v4/projects/cp%2F02002instructors/members/all"
+    gl = gitlab.Gitlab(url="https://"+domain, private_token=info['instructor_gitlab_token'].strip())
+    a = 234
+    prs = []
+    name = url.split(domain)[-1][1:]
+    p = gl.projects.get(name)
+
+    users = p.users.list()
+
+    all_tas = [u.name for u in users]
+    for i in info['instructors']:
+        if i['name'] not in all_tas:
+            print(i)
+    for i in p.invitations.list():
+        print("Invited", i.invite_email.split("@"))
+
+    if False:
+        inv = p.invitations.create({
+            "email": "fmry@dtu.dk",
+            "access_level": gitlab.const.AccessLevel.MAINTAINER,
+        })
+        inv.save()
+
+    #
+    #
+    #
+    #
+    # for p in gl.projects.list(iterator=True):
+    #     prs.append(p)
+    # for p in prs:
+    #     # print(p.name)
+    #     if "02002" in p.name:
+    #         print(p.name, p.id)
+    #
+    # p = gl.projects.get(1644)
+    # users = p.users.list(get_all=True)
+    # for u in users:
+    #     print(u)
+
+
+    # p.invitations.get("tuh@dtu.dk")
+
+    # gl.users.list()[1].username