website/integrations: Update nextcloud Admin Group Expression (#7314)
* Update index.md Replace user.ak_groups.all() with user.all_groups per 2023.8 release notes in Admin Group Update Expression in Admin group to only pass groups that start with 'NC-' to NextCloud. Add verbiage around naming for admin group. Signed-off-by: Sean Dion <smdion@gmail.com> * don't use NC prefix Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Sean Dion <smdion@gmail.com> Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -286,7 +286,7 @@ Create a custom SAML Property Mapping:
|
||||
- Set the _Expression_ to:
|
||||
|
||||
```python
|
||||
for group in user.ak_groups.all():
|
||||
for group in request.user.all_groups():
|
||||
yield group.name
|
||||
if ak_is_group_member(request.user, name="<authentik nextcloud admin group's name>"):
|
||||
yield "admin"
|
||||
|
||||
Reference in New Issue
Block a user