# Users

Endpoints for user management.

## List users

 - [GET /v2/users](https://developer.brex.com/openapi/team_api/users/listusers.md): This endpoint lists all users. To find a user id by email, you can filter using the email query parameter.

## Invite user

 - [POST /v2/users](https://developer.brex.com/openapi/team_api/users/createuser.md): This endpoint invites a new user as an employee.
To update user's role, check out this article.

## Get current user

 - [GET /v2/users/me](https://developer.brex.com/openapi/team_api/users/getme.md): This endpoint returns the user associated with the OAuth2 access token.

## Get user

 - [GET /v2/users/{id}](https://developer.brex.com/openapi/team_api/users/getuserbyid.md): This endpoint gets a user by ID.

## Update user

 - [PUT /v2/users/{id}](https://developer.brex.com/openapi/team_api/users/updateuser.md): This endpoint updates a user. Any parameters not provided will be left unchanged.

## Get limit for the user

 - [GET /v2/users/{id}/limit](https://developer.brex.com/openapi/team_api/users/getuserlimit.md): This endpoint gets the monthly limit for the user including the monthly available limit.

## Set limit for the user

 - [POST /v2/users/{id}/limit](https://developer.brex.com/openapi/team_api/users/setuserlimit.md): This endpoint sets the monthly limit for a user. 
The limit amount must be non-negative. 
To unset the monthly limit of the user, just set monthly_limit to null.

