Teams presence

For an existing Microsoft Graph API connection, this activity can be used to set, retrieve or clear the presence of a user defined on the Microsoft Azure system. The user's ID is an input value to the activity, along with an action value indicating Set, Get or Clear presence. If Set presence is requested, the formatted body of the request must also be provided to the activity to specify the presence value, as shown below:

{

"sessionId": "22553876-f5ab-4529-bffb-cfe50aa89f87",

"availability": "Available",

"activity": "Available",

"expirationDuration": "PT1H"

}

Refer to the Microsoft Graph REST API documentation for details on the options for setting presence.

A connection must be created to Microsoft Graph API to use this activity. For Azure permissions, refer to the Microsoft Azure Integration section.

Table 1. Teams presence action - Inputs
Parameters Description

Connection

Drop-down list of Graph connections.

Id

Unique identifier of the user.

Action

Options are
  • Set - set the presence for a user.

  • Clear - clear the presence for a user.

  • Get - retrieve the presence for a user.

  • Set User Presence - set a user defined presence for a user, such as a custom presence reason.

  • Clear User Presence - clear a user defined presence for a user.

Payload

Formatted body of the request if 'Set' or 'Set User Presence' are selected.

Table 2. Teams presence action - Outputs
Parameters Description

StatusCode

HTTP response code for the request.

Success

Indicates whether the activity was completed successfully (value = True) or not (value = False).

Headers

Array of HTTP headers from the response.

Body

Returns the JSON formatted response from the activity.