class MeetingParticipantInfo
A data class representing information about a participant in a meeting, including their identity, role, and user principal name.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/communications/onlinemeetings/participant_info.py
5 - 16
simple
Purpose
This class serves as a data container for meeting participant information within the Office 365 API integration. It inherits from ClientValue, making it suitable for serialization and transmission in API requests/responses. The class encapsulates three key pieces of information about a meeting participant: their identity (represented by an IdentitySet object), their role in the meeting, and their user principal name (UPN). This is typically used when working with Microsoft Teams or other Office 365 meeting services to represent participant metadata.
Source Code
class MeetingParticipantInfo(ClientValue):
"""Information about a participant in a meeting."""
def __init__(self, identity=IdentitySet(), role=None, upn=None):
"""
:param IdentitySet identity: Identity information of the participant.
:param str role: Specifies the participant's role in the meeting.
:param str upn: User principal name of the participant.
"""
self.identity = identity
self.role = role
self.upn = upn
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
identity: An IdentitySet object containing identity information of the participant. Defaults to an empty IdentitySet() if not provided. This typically includes details like display name, ID, and other identity-related information.
role: A string specifying the participant's role in the meeting (e.g., 'organizer', 'presenter', 'attendee'). Defaults to None if not specified. The exact values depend on the meeting platform's role definitions.
upn: User principal name (UPN) of the participant, typically in email format (e.g., 'user@domain.com'). This is a unique identifier in Azure Active Directory. Defaults to None if not provided.
Return Value
Instantiation returns a MeetingParticipantInfo object with three attributes (identity, role, upn) set to the provided values or their defaults. The object can be used to represent participant information in Office 365 API operations.
Class Interface
Methods
__init__(self, identity=IdentitySet(), role=None, upn=None)
Purpose: Initializes a new MeetingParticipantInfo instance with participant details
Parameters:
identity: IdentitySet object containing identity information of the participant, defaults to empty IdentitySet()role: String specifying the participant's role in the meeting, defaults to Noneupn: User principal name of the participant as a string, defaults to None
Returns: None (constructor)
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
identity |
IdentitySet | Identity information of the participant, including display name, ID, and other identity-related details | instance |
role |
str or None | The participant's role in the meeting (e.g., 'organizer', 'presenter', 'attendee') | instance |
upn |
str or None | User principal name of the participant, typically in email format, serving as a unique identifier in Azure Active Directory | instance |
Dependencies
office365.directory.permissions.identity_setoffice365.runtime.client_value
Required Imports
from office365.directory.permissions.identity_set import IdentitySet
from office365.runtime.client_value import ClientValue
Usage Example
from office365.directory.permissions.identity_set import IdentitySet
from office365.runtime.client_value import ClientValue
# Create a basic participant with default identity
participant1 = MeetingParticipantInfo()
# Create a participant with specific role and UPN
participant2 = MeetingParticipantInfo(
identity=IdentitySet(),
role='presenter',
upn='john.doe@company.com'
)
# Access participant information
print(participant2.role) # Output: 'presenter'
print(participant2.upn) # Output: 'john.doe@company.com'
# Create a participant with custom identity
custom_identity = IdentitySet()
participant3 = MeetingParticipantInfo(
identity=custom_identity,
role='attendee',
upn='jane.smith@company.com'
)
Best Practices
- Always provide a valid IdentitySet object for the identity parameter when creating participants with known identity information
- Use standard role values that are recognized by the Office 365 meeting platform (e.g., 'organizer', 'presenter', 'attendee')
- Ensure the UPN follows the standard email format and corresponds to a valid Azure Active Directory user
- This class is immutable after instantiation - attributes can be modified directly but consider creating new instances for different participants
- When using with Office 365 API calls, ensure the parent ClientValue serialization methods are properly utilized
- The class inherits from ClientValue, which likely provides serialization capabilities for API communication - leverage these inherited methods when transmitting data
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class MeetingParticipants 76.4% similar
-
class ParticipantInfo 76.4% similar
-
class MeetingInfo 73.3% similar
-
class InvitationParticipantInfo 71.1% similar
-
class JoinMeetingIdMeetingInfo 63.9% similar