users
AsyncUser
A user.
email: Optional[str] = Field(None, title='Email')
class-attribute
instance-attribute
firstname: Optional[str] = Field(None, title='Firstname')
class-attribute
instance-attribute
lastname: Optional[str] = Field(None, title='Lastname')
class-attribute
instance-attribute
middlename: Optional[str] = Field(None, title='Middlename')
class-attribute
instance-attribute
name: str = Field(..., title='Name')
class-attribute
instance-attribute
otherPhones: Optional[str] = Field(None, title='Otherphones')
class-attribute
instance-attribute
uid: int = Field(..., title='Uid')
class-attribute
instance-attribute
workphone: Optional[str] = Field(None, title='Workphone')
class-attribute
instance-attribute
client: Optional[AsyncClient]
instance-attribute
email: Optional[str] = Field(None, title='Email')
class-attribute
instance-attribute
firstname: Optional[str] = Field(None, title='Firstname')
class-attribute
instance-attribute
lastname: Optional[str] = Field(None, title='Lastname')
class-attribute
instance-attribute
middlename: Optional[str] = Field(None, title='Middlename')
class-attribute
instance-attribute
model_config = ConfigDict(arbitrary_types_allowed=True)
class-attribute
instance-attribute
name: str = Field(..., title='Name')
class-attribute
instance-attribute
otherPhones: Optional[str] = Field(None, title='Otherphones')
class-attribute
instance-attribute
uid: int = Field(..., title='Uid')
class-attribute
instance-attribute
workphone: Optional[str] = Field(None, title='Workphone')
class-attribute
instance-attribute
clients()
async
Get information about the authenticated user's SFAPI clients.
Returns:
Type | Description |
---|---|
List[Client]
|
the api clients |
Source code in sfapi_client/_async/users.py
groups()
async
The groups that the user is a member of.
Returns:
Type | Description |
---|---|
List[AsyncGroup]
|
the groups |
Source code in sfapi_client/_async/users.py
projects()
async
The projects the user is associate with.
Returns:
Type | Description |
---|---|
List[AsyncProject]
|
the projects |
Source code in sfapi_client/_async/users.py
roles()
async
The roles the user is associate with.
Returns:
Type | Description |
---|---|
List[AsyncRole]
|
the roles |