forked from sr2/cloud-api
feat: group ids in get user endpoints
This commit is contained in:
parent
903b24d17d
commit
1aac45eb76
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue