Skip to content

Timesheet API: Refactor getUsers and add admin functionality #28

@izzyconner

Description

@izzyconner

Currently, the getUsers endpoint works by querying cognito separately for each user. This has some drawbacks, especially the 30 call / second limit for the read requests.

We need to fully build out an alternative way to get all users of a certain role from Cognito, and then filter by userId on our end. This is also going to be necessary for admin functionality.

Admins should, by default, receive all companies and associated user data unless otherwise specified via companyId query. Currently, the user Controller

Finally, once these changes are in place, we should also move most of the logic into UserService out of UserController

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions