Skip to content

Member Model

teams_lib_pzsp2_z1.model.member

Classes

Member dataclass

Represents a member of a Microsoft Teams channel, direct chat, or team.

Attributes:

Name Type Description
id str

The unique identifier of the membership object itself. Note: This is distinct from the user_id.

user_id str

The unique Azure Active Directory (AAD) identifier of the user.

display_name str

The visible name of the user.

role str

The role of the user within the specific context (e.g., "owner", "member").

email str

The email address of the user.

Source code in teams_lib_pzsp2_z1/model/member.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
@dataclass
class Member:
    """Represents a member of a Microsoft Teams channel, direct chat, or team.

    Attributes:
        id (str): The unique identifier of the membership object itself.
            **Note:** This is distinct from the `user_id`.
        user_id (str): The unique Azure Active Directory (AAD) identifier of the user.
        display_name (str): The visible name of the user.
        role (str): The role of the user within the specific context
            (e.g., "owner", "member").
        email (str): The email address of the user.
    """

    id: str
    user_id: str
    display_name: str
    role: str
    email: str