-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The authentik_client API published on PyPI fails to parse UserGroup objects that don't have parent_group set. Not all groups will have a parent group, and parsing Group objects works just fine.
To Reproduce
Steps to reproduce the behavior:
- Import and configure authentik_client in Python 3.12.2
- Initialize the baseAPI object.
- Initialize the coreAPI object from baseAPI.
- Call
coreAPI.core_users_list()
Expected behavior
I would expect it to parse the groups without issue, as calling core_groups_list(), which outputs Group objects that may or may not contain parent_group
Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Output of docker-compose logs or kubectl logs respectively
Version and Deployment (please complete the following information):
- authentik version: 2024.2.2
- Deployment: docker-compose
- Python version: 3.12.2
- authentik_client version: 2024.2.2-1710845398
Additional context
A few of my groups do not have a parent group, as they shouldn't or don't need to.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working