Closed scottandee closed 2 weeks ago
Superadmin does not retrieve in a different way
Team Members slack IDs: @Dayo A @Omozua Judah
This appears duplicated
This retrieves all the users of a single organisation while that retrieves all the organisation of a single user
this appears duplicated still, but we will find out when the PR enters
Description
Develop API endpoint to fetch the list of all the users in a single organization
Acceptance Criteria
api/v1/organization/<orgId>/users
GET
requests.Authorization: Bearer <token>
Request
GET
/api/v1/organization/:orgId/users
string
- The id of the organisation whose users are to be retrievedpage
: integer (optional) defaults to1
- Pagination parameter specifying the page number to be retrievedpage_size
: integer (optional) defaults to10
- Pagination parameter specifying the number of users retrieved per pageExpected Outcome
Successful Response
200
status codeServer Error Response
500 Internal Server Error
Unauthenticated User Error
401 Unauthorized
Forbidden User Error
403 Forbidden
Purpose
Provides a backend service which allows users to fetch all users in their organization
Requirements
Unittests: