aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/constants.py
diff options
context:
space:
mode:
Diffstat (limited to 'arthur/constants.py')
-rw-r--r--arthur/constants.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/arthur/constants.py b/arthur/constants.py
new file mode 100644
index 0000000..f56bb65
--- /dev/null
+++ b/arthur/constants.py
@@ -0,0 +1,13 @@
+"""Constants, primarily used for LDAP enrollment preferences."""
+
+# Users are only checked for enrollment if they have this role. This doesn't grant them any
+# permissions, it is for performance to avoid iterating roles for every other user in the guild.
+LDAP_BASE_STAFF_ROLE = 267630620367257601
+
+# This is a mapping of LDAP groups to Discord roles. It is used to determine which users should be
+# eligible for LDAP enrollment.
+LDAP_ROLE_MAPPING = {
+ "devops": 409416496733880320,
+ "administrators": 267628507062992896,
+ "moderators": 267629731250176001,
+}