Return user's roles in response to /tenants/tenantId/users
Currently, user's roles in given tenant are not returned in response to /tenants/
So, for example, if we need to get admins or user of a given tenant, we should:
1) get user list for tenant;
2) for each user get his roles (an HTTP query /users/
A better solution is to return roles in a single query:
{
"users": {
"links": [
{
}
],
"values": [
{
]
},
{
]
}
]
}
}
Here is a proposed patch:
https:/
Blueprint information
- Status:
- Complete
- Approver:
- Ziad Sawalha
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Beta Available
- Milestone target:
- None
- Started by
- Ziad Sawalha
- Completed by
- Joseph Heck
Related branches
Related bugs
Sprints
Whiteboard
ZNS 2011-10-21: I'm concerned that if this is core that it will be difficult to implement on all backends in a scalable way. It could potentially take a lot of calls to get the list of roles for each user as they are listed. It would therefore be preferable to propose this as an extension. CLients can query for the extension and if it is not there, rever to using what is available in core (i.e. /users/:id for each user)