Office365groupsClient
Attributes
OnGroupMemberAddedOrRemovedResponse
module-attribute
TRIGGER_OPERATIONS
module-attribute
TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'OnGroupMembershipChange': {'operation_id': 'OnGroupMembershipChange', 'path': '/{connectionId}/trigger/v1.0/groups/delta', 'method': 'get', 'required_parameters': ['groupId'], 'callback_payload_type': 'OnGroupMemberAddedOrRemovedResponse'}, 'OnNewEvent': {'operation_id': 'OnNewEvent', 'path': '/{connectionId}/trigger/v1.0/groups/{groupId}/events', 'method': 'get', 'required_parameters': ['groupId'], 'callback_payload_type': 'OnNewEventResponse'}}
Classes
ListGroupMembersResponse
dataclass
ListGroupMembersResponse(context: Optional[str] = None, next_link: Optional[str] = None, value: Optional[List[Dict[str, Any]]] = None)
Response for List group members
Attributes
context
class-attribute
instance-attribute
The OData context.
next_link
class-attribute
instance-attribute
Only used in Power Apps Canvas to genereate the $skipToken for
pagination. Power Automate and Logic Apps must use the pagination setting.
ListGroupsResponse
dataclass
ListGroupsResponse(context: Optional[str] = None, next_link: Optional[str] = None, value: Optional[List[Dict[str, Any]]] = None)
Response for List groups
Attributes
context
class-attribute
instance-attribute
The OData context.
next_link
class-attribute
instance-attribute
Only used in Power Apps Canvas to genereate the $skipToken for
pagination. Power Automate and Logic Apps must use the pagination setting.
CreateCalendarEventResponse
dataclass
CreateCalendarEventResponse(id: Optional[str] = None, reminder_minutes_before_start: Optional[int] = None, is_reminder_on: Optional[bool] = None, subject: Optional[str] = None, importance: Optional[str] = None, is_all_day: Optional[bool] = None, response_requested: Optional[bool] = None, show_as: Optional[str] = None, body: Optional[Dict[str, Any]] = None, start: Optional[Dict[str, Any]] = None, end: Optional[Dict[str, Any]] = None, location: Optional[Dict[str, Any]] = None)
Response for Update a group event
Attributes
reminder_minutes_before_start
class-attribute
instance-attribute
reminder_minutes_before_start: Optional[int] = field(default=None, metadata={'wire_name': 'reminderMinutesBeforeStart'})
Time in minutes before event starts to remind.
is_reminder_on
class-attribute
instance-attribute
Set to true if the event has a reminder.
importance
class-attribute
instance-attribute
The importance of the event: Low, Normal, or High.
is_all_day
class-attribute
instance-attribute
True if the event is an all day event.
response_requested
class-attribute
instance-attribute
response_requested: Optional[bool] = field(default=None, metadata={'wire_name': 'responseRequested'})
True if a response was requested for the event.
show_as
class-attribute
instance-attribute
Status to show during the event.
ObjectWithoutType
dataclass
ListOwnedGroupsResponse
dataclass
ListOwnedGroupsResponse(context: Optional[str] = None, value: Optional[List[Dict[str, Any]]] = None)
Response for List groups that I own and belong to
SensitivityLabelMetadata
dataclass
SensitivityLabelMetadata(sensitivity_label_id: Optional[str] = None, name: Optional[str] = None, display_name: Optional[str] = None, tooltip: Optional[str] = None, priority: Optional[int] = None, color: Optional[str] = None, is_encrypted: Optional[bool] = None, is_enabled: Optional[bool] = None, is_parent: Optional[bool] = None, parent_sensitivity_label_id: Optional[str] = None)
Definition: SensitivityLabelMetadata
Attributes
sensitivity_label_id
class-attribute
instance-attribute
sensitivity_label_id: Optional[str] = field(default=None, metadata={'wire_name': 'sensitivityLabelId'})
SensitivityLabel Id.
display_name
class-attribute
instance-attribute
SensitivityLabel displayName info
tooltip
class-attribute
instance-attribute
SensitivityLabel details on tooltip.
priority
class-attribute
instance-attribute
SensitivityLabel priority.
is_encrypted
class-attribute
instance-attribute
is SensitivityLabel Encrypted.
is_enabled
class-attribute
instance-attribute
Whether SensitivityLabel is Enabled.
is_parent
class-attribute
instance-attribute
Whether SensitivityLabel is Parent.
UpdateCalendarEventRequest
dataclass
UpdateCalendarEventRequest(subject: Optional[str] = None, start: Optional[Dict[str, Any]] = None, end: Optional[Dict[str, Any]] = None, body: Optional[Dict[str, Any]] = None, location: Optional[Dict[str, Any]] = None, importance: Optional[str] = None, is_all_day: Optional[bool] = None, is_reminder_on: Optional[bool] = None, reminder_minutes_before_start: Optional[int] = None, show_as: Optional[str] = None, response_requested: Optional[bool] = None)
Definition: UpdateCalendarEvent_Request
Attributes
importance
class-attribute
instance-attribute
The importance of the event: Low, Normal, or High.
is_all_day
class-attribute
instance-attribute
Set to true if the event lasts all day.
is_reminder_on
class-attribute
instance-attribute
Set to true if the event has a reminder.
reminder_minutes_before_start
class-attribute
instance-attribute
reminder_minutes_before_start: Optional[int] = field(default=None, metadata={'wire_name': 'reminderMinutesBeforeStart'})
Time in minutes before event start to remind.
show_as
class-attribute
instance-attribute
Status to show during the event.
UpdateCalendarEventHTMLRequest
dataclass
UpdateCalendarEventHTMLRequest(subject: Optional[str] = None, start: Optional[Dict[str, Any]] = None, end: Optional[Dict[str, Any]] = None, body: Optional[Dict[str, Any]] = None, location: Optional[Dict[str, Any]] = None, importance: Optional[str] = None, is_all_day: Optional[bool] = None, is_reminder_on: Optional[bool] = None, reminder_minutes_before_start: Optional[int] = None, show_as: Optional[str] = None, response_requested: Optional[bool] = None)
Definition: UpdateCalendarEvent_HTMLRequest
Attributes
importance
class-attribute
instance-attribute
The importance of the event: Low, Normal, or High.
is_all_day
class-attribute
instance-attribute
Set to true if the event lasts all day.
is_reminder_on
class-attribute
instance-attribute
Set to true if the event has a reminder.
reminder_minutes_before_start
class-attribute
instance-attribute
reminder_minutes_before_start: Optional[int] = field(default=None, metadata={'wire_name': 'reminderMinutesBeforeStart'})
Time in minutes before event start to remind.
show_as
class-attribute
instance-attribute
Status to show during the event.
Office365groupsClient
Office365groupsClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for office365groups connector.
Initialize a Office365groupsClient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection_runtime_url
|
str
|
The connection runtime URL from Azure Portal. |
required |
token_provider
|
Optional[TokenProvider]
|
Optional token provider. Defaults to ManagedIdentityTokenProvider. |
None
|
options
|
Optional[ConnectorClientOptions]
|
Optional connector client options. |
None
|
Methods:
list_group_members_async
async
List group members
This operation returns a list of all members in the given group and their details such as name, title, email, etc. You can query up to 1000 items using Top parameter. In case you need to retrieve more than 1000 values please turn on Settings->Pagination feature and provide Threshold limit.
add_member_to_group_async
async
Add member to group
This operation is used to add a member to an O365 group, using a UPN.
list_groups_async
async
list_groups_async(extract_sensitivity_label: Optional[bool] = None, fetch_sensitivity_label_metadata: Optional[bool] = None, filter: Optional[str] = None, top: Optional[int] = None, skiptoken: Optional[str] = None) -> dict[str, Any] | None
List groups
This operation returns a list of all groups in the organization.
update_calendar_event_async
async
update_calendar_event_async(input: UpdateCalendarEventHTMLRequest, group_id: str, event: str) -> dict[str, Any] | None
Update a group event
This operation is used to update a new event in a group calendar.
remove_member_from_group_async
async
Remove member from group
This operation is used to remove a member from an O365 group, using a UPN.
list_deleted_groups_async
async
List deleted groups
Lists deleted groups that can be restored.
restore_deleted_group_async
async
Restore a deleted group
Restore a recently deleted group
list_deleted_groups_by_owner_async
async
List deleted groups by owner
List deleted groups that can be restored by owner
calendar_delete_item_async
async
Delete event
This operation deletes an event in a calendar.
create_calendar_event_async
async
create_calendar_event_async(input: UpdateCalendarEventHTMLRequest, group_id: str) -> dict[str, Any] | None
Create a group event
This operation is used to create a new event in a group calendar.
http_request_async
async
Send an HTTP request
Construct a Microsoft Graph REST API request to invoke. There is one segment that is supported: /groups. Learn more: https://docs.microsoft.com/en-us/graph/use-the-api.