feat: user ids return on get org users

This commit is contained in:
Chris Milne 2026-06-09 14:21:32 +01:00
parent a215d11df9
commit 607f736453
3 changed files with 8 additions and 3 deletions

View file

@ -265,7 +265,7 @@ async def get_users(org_model: org_model_root_claim_query_dependency):
Returns a list of the email addresses of all users of the organisation.
"""
return {
"users": [user.email for user in org_model.user_rel],
"users": [{"email": user.email, "id": user.id} for user in org_model.user_rel],
"organisation": org_model,
}

View file

@ -92,7 +92,7 @@ class OrgPatchRootResponse(CustomBaseModel):
class OrgGetUserResponse(CustomBaseModel):
users: list[str]
users: list[dict[str, str | int]]
organisation: OrgSchema