feat: user ids return on get org users
This commit is contained in:
parent
a215d11df9
commit
607f736453
3 changed files with 8 additions and 3 deletions
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue