List departments for a specific user
GET/department/user/:user_id
Retrieve a list of departments associated with a specific user by their user ID.
Use Cases:
- Admins checking which departments a particular user belongs to.
- Granting or reviewing departmental access for a user.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Validation Error
Internal Server Error