diff --git a/charts/hedgedoc/Chart.yaml b/charts/hedgedoc/Chart.yaml
index 261ac1d23384d0aaa1f4585509c098ecbd6002f4..b565f3c917f3e6ed0c580bd2d28e3d7cb829f683 100644
--- a/charts/hedgedoc/Chart.yaml
+++ b/charts/hedgedoc/Chart.yaml
@@ -14,9 +14,9 @@ keywords:
 sources:
     - https://github.com/hedgedoc/hedgedoc/tree/master
     - https://git.shivering-isles.com/shivering-isles/infrastructure-gitops/-/tree/main/charts/hedgedoc
-version: 0.3.3
+version: 0.4.0
 # renovate: image=quay.io/hedgedoc/hedgedoc
-appVersion: "1.9.8"
+appVersion: "1.9.9"
 maintainers:
 - name: Sheogorath
   url: https://shivering-isles.com
diff --git a/charts/hedgedoc/README.md b/charts/hedgedoc/README.md
index 1ef1939df48356ee56ec259acd1ff3043a0f3b8c..2a9647c39d114b6b186bd13d1e54c8d4a5ca499a 100644
--- a/charts/hedgedoc/README.md
+++ b/charts/hedgedoc/README.md
@@ -1,6 +1,6 @@
 # hedgedoc
 
-![Version: 0.3.3](https://img.shields.io/badge/Version-0.3.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.9.8](https://img.shields.io/badge/AppVersion-1.9.8-informational?style=flat-square)
+![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.9.9](https://img.shields.io/badge/AppVersion-1.9.9-informational?style=flat-square)
 
 A platform to write and share markdown.
 
@@ -41,10 +41,12 @@ A platform to write and share markdown.
 | config.minio.port | int | `443` |  |
 | config.minio.secretKey | string | `nil` |  |
 | config.minio.secure | bool | `true` |  |
+| config.oauth.accessRole | string | `nil` |  |
 | config.oauth.authorisationUrl | string | `nil` |  |
 | config.oauth.clientId | string | `nil` |  |
 | config.oauth.clientSecret | string | `nil` |  |
 | config.oauth.providerName | string | `nil` |  |
+| config.oauth.roleClaim | string | `nil` |  |
 | config.oauth.scope | string | `"openid email profile"` |  |
 | config.oauth.tokenUrl | string | `nil` |  |
 | config.oauth.userProfileDisplayName | string | `"name"` |  |
diff --git a/charts/hedgedoc/templates/configmap.yaml b/charts/hedgedoc/templates/configmap.yaml
index 4dfc1f97352805d632226e9ebc45718ffbe7998c..2f739b42303a2587696d259280f689f5d118c280 100644
--- a/charts/hedgedoc/templates/configmap.yaml
+++ b/charts/hedgedoc/templates/configmap.yaml
@@ -65,6 +65,12 @@ data:
   {{- with .Values.config.oauth.scope }}
   CMD_OAUTH2_SCOPE: {{ . | quote }}
   {{- end }}
+  {{- with .Values.config.oauth.roleClaim }}
+  CMD_OAUTH2_ROLES_CLAIM: {{ . | quote }}
+  {{- end }}
+  {{- with .Values.config.oauth.accessRole }}
+  CMD_OAUTH2_ACCESS_ROLE: {{ . | quote }}
+  {{- end }}
   {{- with .Values.config.defaultPermission }}
   CMD_DEFAULT_PERMISSION: {{ . | quote }}
   {{- end }}
\ No newline at end of file
diff --git a/charts/hedgedoc/values.yaml b/charts/hedgedoc/values.yaml
index d26b31b6976370e110a80b6d3d69feb35aecb1cf..cc954dbc44dec3ca2f6c15e488ba35517375d28d 100644
--- a/charts/hedgedoc/values.yaml
+++ b/charts/hedgedoc/values.yaml
@@ -51,6 +51,8 @@ config:
     userProfileDisplayName: name
     userProfileEmailAttr: email
     scope: openid email profile
+    roleClaim: null
+    accessRole: null
 
 
 postgresql: