1
0
Fork 0
forked from sr2/cloud-api

feat: group ids in get user endpoints

This commit is contained in:
Chris Milne 2026-06-08 10:51:01 +01:00
parent 903b24d17d
commit 1aac45eb76
2 changed files with 2 additions and 2 deletions

View file

@ -42,5 +42,5 @@ class User(Base):
def groups(self):
result = defaultdict(list)
for group in self.group_rel:
result[group.org_rel.name].append(group.name)
result[group.org_rel.name].append({"name": group.name, "id": group.id})
return dict(result)