Users¶
Resource¶
UsersResource
¶
Operations on user accounts.
Source code in src/assured/resources/users.py
list(params=None, **kwargs)
async
¶
Return a single page of users.
Source code in src/assured/resources/users.py
list_all(params=None, **kwargs)
async
¶
Auto-paginate and return all users.
Source code in src/assured/resources/users.py
list_df(params=None, **kwargs)
async
¶
Return all users as a DataFrame.
Source code in src/assured/resources/users.py
login(email, password, remember=True)
async
¶
Programmatic login to acquire a short-lived session JWT.
The Assured API natively relies on static long-lived API keys for integrations, but some undocumented and browser-specific endpoints (like the SSN update endpoint) strictly demand Bearer JWT authorization.
This dynamically trades a user email and password for the active JWT access token.
Returns:
| Type | Description |
|---|---|
str
|
The raw JWT access string. |
Source code in src/assured/resources/users.py
password_reset(email)
async
¶
Trigger a password reset email for a given user or provider.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
email
|
str
|
The email address to send the password reset link to. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
The raw JSON response from the server (typically empty on 200 OK). |
Source code in src/assured/resources/users.py
Models¶
User
¶
Bases: BaseModel
A user account on the Assured platform.
Source code in src/assured/models/users.py
UserListParams
¶
Bases: BaseModel
Query parameters for the users list endpoint.