Microsoft Teams v2
Post, manage and approve in Microsoft Teams through Graph
Posts and replies in chats and channels, manages teams, channels, members and meetings, and calls any Graph path through Microsoft Teams.
microsoft-teams-v2_4.0.4.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Microsoft Teams v2 connects FortiSOAR to a Microsoft 365 tenant through Microsoft Graph. It posts messages, replies and mentions to channels and chats, creates and manages teams, channels and members, and creates, updates and deletes meetings. Team, channel and user fields are dropdowns fed from the tenant. Execute API Request calls any Graph path with the connector's own credentials.
Operations take input that is checked before any request is sent. Errors from Microsoft Graph (401, 403, 404, 429) raise a clear error. A 429 is retried with the Retry-After wait.
The Teams bot (the listener that posts adaptive-card approvals and relays answers) is not in this package. It needs a compiled module that soarshelf does not ship. The connector loads and every operation other than the bot relay runs without it. The bot relay operation returns a clear error when the listener is not installed.
Live-tested
On FortiSOAR 8.0.1 against a Microsoft 365 test tenant, 30 of 41 operations returned a live success on version 4.0.2. Version 4.0.4, the version in this package, passed the live operation suite (26 operations ok, 13 expected refusals) and all seven SOC and NOC playbook branches on FortiSOAR 8.0.1.
4.0.4 fixes bot and listener defects found by new offline tests: bot playbook parameters now receive their values (not their key names), the listener no longer blocks its event loop or loops forever on a 502, listener endpoints return 4xx for bad requests and an error for failed card delivery, and Adaptive Cards keep URL, dropdown and checkbox defaults. The bot-command and card-default fixes are covered offline; they were not exercised through a live Teams bot.
Not live-tested
The tenant refused these operations, and the refusal is the recorded result. Each one is listed with the reason:
- Send Message, Reply to Message, Mention in Message and Send Chat: the tenant allows application-only message posting for import purposes only (401).
- Create Meeting, Get Meeting, Update Meeting and Delete Meeting: the app has no application access policy for the user (403). Get, update and delete were not reached, so the not-found path is covered offline only.
- Get Replies to Channel Message: the live call returned a bad request for an unknown message ID (400), so a real reply list was not returned.
- Get Chat Messages: no chat was created, because sending a chat was refused.
- Send Message or Approval Form to Bot: the bot listener is not part of this package, so the relay was not reached.
Error classes, for every operation unless noted: 401, 403, 404 and 429 are replayed offline from the Graph error shape.
Playbooks: the Forms playbooks (SOC escalation, NOC change and outage, and the reusable question child) ran their branches on 4.0.2. The NOC impact branch was re-run on 4.0.3. Branches that need the bot are not covered.
Configuration · 3 fields
- Get Access Token
auth_typeselect requiredSelect the method used to get authentication tokens for accessing the security graph APIs. You can choose from the following options: Without a User – Application Permission The 'Without a User - Application Permission' flow refers to a process in which there is no user sign-in; instead, the administrator provides consent on behalf of all user's inboxes in a given tenant. Azure applications require 'full_app' permissions for granting your admin's consent. On behalf of User – Delegate Permission The 'On behalf of User - Delegated Permission' flow refers to a process in which users access the…
Options On behalf of User - Delegate PermissionWithout a User - Application PermissionWhen Get Access Token is Without a User - Application Permission
- Server URL
resourcetext requiredSpecify the service-based URI to which you will connect and perform the automated operations.
Default
https://graph.microsoft.com - Tenant ID
tenant_idtext requiredSpecify the ID of the tenant that is assigned to you by the Azure application registration portal.
- Client ID
client_idtext requiredSpecify the unique ID of the Azure application that is used to create an authentication token required to access the API. The client ID comes from registering the application with the Microsoft Azure portal. It is in the UUID format.
- Client Secret
client_secretpassword requiredSpecify the unique Client Secret of the Azure application that is used to create an authentication token required to access the API. Sometimes called an application password, the client secret is set from the 'Certificates & Secrets' section of the Microsoft Azure portal. For information on how to get the secret key, see the 'Create an app to access Microsoft Defender for Endpoint without a user' article.
When Get Access Token is On behalf of User - Delegate Permission
- Server URL
resourcetext requiredSpecify the service-based URI to which you will connect and perform the automated operations.
Default
https://graph.microsoft.com - Tenant ID
tenant_idtext requiredSpecify the ID of the tenant that is assigned to you by the Azure application registration portal.
- Client ID
client_idtext requiredSpecify the unique ID of the Azure application that is used to create an authentication token required to access the API. The client ID comes from registering the application with the Microsoft Azure portal. It is in the UUID format.
- Client Secret
client_secretpassword requiredSpecify the unique Client Secret of the Azure application that is used to create an authentication token required to access the API. Sometimes called an application password, the client secret is set from the 'Certificates & Secrets' section of the Microsoft Azure portal. For information on how to get the secret key, see the 'Create an app to access Microsoft Defender for Endpoint without a user' article.
- Authorization Code
codepassword required(Only Applicable to On behalf of User – Delegate Permission) The authorization code that you acquired during the authorization step. For more information, see the Getting Access Tokens using the Delegate Permissions method topic.
- Redirect URL
redirect_urltext(Only Applicable to On behalf of User – Delegate Permission) The redirect_uri of your app, where authentication responses can be sent and received by your app. It must exactly match one of the redirect_uri's you registered in the app registration portal.
- Enable Bot Communication
enable_teams_botcheckboxSelect this option if you want to enable bi-directional communication between MS Teams and FortiSOAR. If you select this option, then specify the following parameters based on your configured FortiSOAR for Microsoft Teams Application. Please refer the 'Prerequisites to configuring the connector section' for more details.
When Enable Bot Communication is true
- App Service URL
app_service_urltext requiredSpecify the service URL of the FortiSOAR for Microsoft Teams Application.
Default
https://smba.trafficmanager.net/amer/ - App ID
app_idtext requiredSpecify the Application ID of your configured FortiSOAR for Microsoft Teams Application.
- App Password
app_passpassword requiredSpecify the Application Secret of your FortiSOAR for Microsoft Teams Application.
- Verify SSL
verify_sslcheckboxSpecifies whether the SSL certificate for the server is to be verified or not. By default, this option is set to True.
Default
true
Operations · 41
Create User 7 params
create_usercreate_userCreates a new user in Microsoft Teams based on the display name, mail nickname, password, and other input parameters you have specified.
- Display Name
displayNametext requiredSpecify the name to display in the address book for the user that you want to create in Microsoft Teams. NOTE: Maximum length for the user's display name is 256 characters.
- Account Enabled
accountEnabledcheckbox requiredSelect this checkbox, i.e., set it to "true", to enable the newly created account in Microsoft Teams. By default, this is set as "false".
Default
true - Mail Nick Name
mailNicknametext requiredSpecify the mail alias for the user that you want to create in Microsoft Teams.
- User Principal Name
userPrincipalNametext requiredSpecify the principal name of the user, for example, someuser@example.com, that you want to create in Microsoft Teams.
- Password
passwordpassword requiredSpecify the password to be set for the user that you want to create in Microsoft Teams. You must set this password when you are creating a user in Microsoft Teams. Passwords can be updated. However, the user will be required to change the password on their next login. The password must satisfy minimum requirements as specified by the "passwordPolicies" parameters of the user. By default, a strong password is required.
- Force Change Password Next SignIn
forceChangePasswordNextSignIncheckboxSelect this checkbox, i.e., set it to "true", to force users to change their password when they sign in to Microsoft Teams the next time. Once the user has changed their password, this parameter automatically resets to false. By default, this is set as "false".
- Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to specify for the user you want to create in Microsoft Team. The additional properties signify additional fields associated with the user.
ReturnsidmailsurnamejobTitlegivenNamedisplayNamemobilePhone@odata.contextbusinessPhonesofficeLocationpreferredLanguageuserPrincipalNameGet All Users 6 params
list_userslist_usersRetrieves a list of users from Microsoft Teams based on the query for filtering users that you have specified.
- Filter Query
$filtertextSpecify the filter query based on which you want to retrieve groups. Refer to Azure Filter Query Parameters for information on the filter query syntax.
- Select Query
$selecttextSpecify the $select query to retrieve groups from Microsoft Teams. The OData's Select query is supported on fields such as id, userPrincipalName, displayName, etc. Refer to OData system query options for more information.
- Search Query
$searchtextSpecify the search query to retrieve user details from Azure Active Directory. The OData's Search query is supported on fields such as id, userPrincipalName, displayName, etc. Refer to OData system query options for more information.
- Order By
$orderBytext(Optional) Specify the order in which you want to sort the results retrieved from Microsoft Teams. You can specify asc or desc. By default, this is set to asc.
- Number of Users to Fetch
$topinteger(Optional) Specify the maximum number of users that this operation should return from Microsoft Teams.
- Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to specify for the user you want to create in Microsoft Team. The additional properties signify additional fields associated with the user.
ReturnsdataGet User Details 1 param
get_usersget_usersRetrieves details for users from Microsoft Teams based on the user ID or the user principal name you have specified
- Based On
based_onselect requiredSelect the parameter using which you want to retrieve details for a user from Microsoft Teams. You can choose from the following options: User ID or User Principal Name.
Default
User Principal NameOptions User IDUser Principal NameWhen Based On is User ID
- User ID
idtext requiredSpecify the ID of the user whose details you want to retrieve from Microsoft Teams, in the User ID field.
When Based On is User Principal Name
- User Principal Name
idtext requiredSpecify the User Principal Name of the user whose details you want to retrieve from Microsoft Teams, in the User Principal Name field. If this parameter is not specified then it returns all user details.
ReturnsidmailsurnamejobTitlegivenNamedisplayNamemobilePhone@odata.contextbusinessPhonesofficeLocationpreferredLanguageuserPrincipalNameUpdate User Details 7 params
update_userupdate_userUpdates the details of an existing Microsoft Teams user based on the user ID or the user principal name, display name, and other input parameters you have specified
- Based On
based_onselect requiredSelect the parameter using which you want to update details of a user in Microsoft Teams. You can choose from the following options: User ID or User Principal Name.
Default
User IDOptions User IDUser Principal NameWhen Based On is User ID
- User ID
idtext requiredSpecify the ID of the user whose details you want to update in the User ID field.
When Based On is User Principal Name
- User Principal Name
idtext requiredSpecify the User Principal Name of the user whose details you want to update in the User Principal Name field.
- Display Name
displayNametextSpecify the display name that you want to update in the address book for the Microsoft Teams user.
- Given Name
givenNametextSpecify the given name (first name) that you want to update for the Microsoft Teams user.
- Surname
surnametextSpecify the surname that you want to update for the Microsoft Teams user.
- Job Title
jobTitletextSpecify the job title that you want to update for the Microsoft Teams user.
- Office Location
officeLocationtextSpecify the office location, i.e., the user's place of business that you want to update for the Microsoft Teams user.
- Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to update for the Microsoft Teams user. The additional properties signify additional fields associated with the user.
ReturnsmessageDelete User 1 param
delete_userdelete_userDeletes an existing Microsoft Teams user based on the user ID or the user principal name you have specified. IMPORTANT: Once a user is deleted, the resources of the user are moved to a temporary container from which they can be restored within 30 days after which, they are permanently deleted
- Based On
based_onselect requiredSelect the parameter using which you want to delete the user in Microsoft Teams. You can choose from the following options: User ID or User Principal Name.
Default
User IDOptions User IDUser Principal NameWhen Based On is User ID
- User ID
idtext requiredSpecify the ID of the user to delete in the User ID field.
When Based On is User Principal Name
- User Principal Name
idtext requiredSpecify the User Principal Name of the user whose details you want to delete in the User Principal Name field.
ReturnsmessageCreate Group 8 params
create_groupcreate_groupCreates a new group in Microsoft Teams based on the display name, mail nickname, and other input parameters you have specified. NOTE: You can create an Office 365 Group (Unified Group) or a Security Group
- Display Name
displayNametext requiredSpecify the name to display in the address book for the group that you want to create in Microsoft Teams. NOTE: Maximum length for the group's display name is 256 characters.
- Mail Nickname
mailNicknametext requiredSpecify the mail alias for the group that you want to create in Microsoft Teams. NOTE: Spaces are not allowed in the mail alias for the group.
- Email Enabled
mailEnabledcheckboxSelect this checkbox for mail-enabled groups.
Default
true - Security Enabled
securityEnabledcheckboxSelect this checkbox only for security-enabled groups, including Office 365 groups.
Default
true - Group Type
groupTypestextSpecify the group type. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or distribution group. For details, see: https://learn.microsoft.com/en- us/graph/api/resources/groups-overview?view=graph-rest-1.0#group-types-in- azure-ad-and-microsoft-graph
Default
Unified - Description
descriptiontextSpecify a Description of the group that you want to create in Microsoft Teams.
- Visibility
visibilityselectSpecify the visibility to be set for the Office 365 group that you want to create in Microsoft Teams. You can choose from the following options: Private, Public, HiddenMembership, or "empty" (which is interpreted as Public).
Options PrivatePublicHiddenMembership - Custom Properties
custom_attributesjsonSpecify the additional properties, in JSON format, that you want to specify for the group you want to create in Microsoft Team. The additional properties signify additional fields associated with the group.
ReturnsidmailthemegroupTypesvisibilitydescriptiondisplayNamemailEnabledmailNickname@odata.contextclassificationmembershipRuleproxyAddressescreatedDateTimecreationOptionsdeletedDateTimerenewedDateTimesecurityEnabledpreferredLanguageexpirationDateTimeisAssignableToRolesecurityIdentifieronPremisesDomainNameonPremisesNetBiosNameonPremisesSyncEnabledpreferredDataLocationresourceBehaviorOptionsonPremisesSamAccountNameonPremisesLastSyncDateTimeresourceProvisioningOptionsGet Groups 2 params
get_groupsget_groupsRetrieves details for groups from Microsoft Teams based on the group ID you have specified. NOTE: If no parameter is specified, then this operation returns details of all the groups
- Group ID
group_idselectSpecify the Microsoft 365 group from the list. The bare group ID is also accepted.
- Custom Properties
custom_attributesjsonSpecify the additional properties, in the JSON format, that you want to specify for the group you want to create in Microsoft Team. The additional properties signify additional fields associated with the group.
Delete Group 1 param
delete_groupdelete_groupDeletes an existing Microsoft Teams group based on the group ID you have specified. IMPORTANT:: Once a group is deleted, the Office 365 groups are moved to a temporary container from which they can be restored within 30 days after which, they are permanently deleted
- Group ID
group_idselect requiredSpecify the Microsoft 365 group from the list. The bare group ID is also accepted.
ReturnsmessageAdd Group's Owner 2 params
add_owneradd_ownerAdds a user as an owner of a specific Office 365 or Security Group in Microsoft Teams based on the group ID and user ID you have specified
- Group ID
group_idtext requiredID of the group in Microsoft Teams to which you want to add the specific user as a group owner.
- User ID
user_idtext requiredSpecify the ID of the group in Microsoft Teams to which you want to add the specific user as a group owner.
ReturnsresultstatusmessageGet Group's Owner 2 params
get_group_ownerget_group_ownerRetrieves a list of owners of a specified group from Microsoft Teams based on the group ID you have specified
- Group ID
group_idselect requiredSpecify the Microsoft 365 group from the list. The bare group ID is also accepted.
- Custom Properties
custom_attributesjsonSpecify the additional properties, in the JSON format, that you want to specify for the group you want to create in Microsoft Team. The additional properties signify additional fields associated with the group.
ReturnsdataRemove Group's Owner 2 params
remove_group_ownerremove_group_ownerRemoves the specified owner from the specified group in Microsoft Teams based on the group ID and owner ID you have specified.
- Group ID
group_idselect requiredSpecify the Microsoft 365 group from the list. The bare group ID is also accepted.
- Owner ID
owner_idtext requiredSpecify the ID of the owner who you want to remove as the group owner of the specified group in Microsoft Teams.
ReturnsresultstatusmessageAdd Group's Member 2 params
add_memberadd_memberAdds a user as a member of a specific Office 365 or Security Group in Microsoft Teams based on the group ID and user ID you have specified
- Group ID
group_idselect requiredSpecify the Microsoft 365 group from the list. The bare group ID is also accepted.
- User ID
user_idselect requiredSpecify the user from the list (display name and UPN). The bare user ID is also accepted.
ReturnsresultstatusmessageGet Group's Member 3 params
get_group_memberget_group_memberRetrieves a list of the direct members of a group from Microsoft Teams based on the group ID and user ID you have specified. A group can have users, contacts, devices, service principals, and other groups as its members
- Group ID
group_idselect requiredSpecify the Microsoft 365 group from the list. The bare group ID is also accepted.
- User ID
user_idselectSpecify the user from the list (display name and UPN). The bare user ID is also accepted.
- Custom Properties
custom_attributesjsonSpecify the additional properties, in the JSON format, that you want to specify for the group you want to create in Microsoft Team. The additional properties signify additional fields associated with the group.
Remove Group's Member 2 params
remove_group_memberremove_group_memberRemoves the specified user from the specified group in Microsoft Teams based on the group ID and user ID you have specified
- Group ID
group_idselect requiredSpecify the Microsoft 365 group from the list. The bare group ID is also accepted.
- User ID
user_idselect requiredSpecify the user from the list (display name and UPN). The bare user ID is also accepted.
ReturnsresultstatusmessageCreate Channel 5 params
create_channelcreate_channelCreates a new channel in Microsoft Teams based on the team or group name, channel name, membership type, and other input parameters you have specified
- Team/Group ID
group_idselect requiredSpecify the team from the list. The list shows Microsoft Teams teams (not all groups); the bare team ID is also accepted.
- Channel Name
displayNametext requiredSpecify the name of the channel that you want to create in Microsoft Teams.
- Description
descriptiontext requiredSpecify the description of the channel that you want to create in Microsoft Teams.
- Membership Type
membershipTypeselect requiredSelect the type of membership that would be allowed for the channel that you want to create in Microsoft Teams.
Options PrivateStandard - Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to specify for the channel you want to create in Microsoft Team. The additional properties signify additional fields associated with the channel.
Returns@odata.contextidcreatedDateTimedisplayNamedescriptionisFavoriteByDefaultemailwebUrlmembershipTypeGet Channel Details 3 params
get_channelget_channelRetrieves information for a specified channel from Microsoft Teams based on the team or group ID and channel name you have specified
- Team/Group ID
group_idselect requiredSpecify the team from the list. The list shows Microsoft Teams teams (not all groups); the bare team ID is also accepted.
- Channel ID
channel_idselectSpecify the channel of the selected team from the list. The list refreshes when the Team/Group ID changes. The bare channel ID is also accepted.
- Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to specify for the channel you want to create in Microsoft Team. The additional properties signify additional fields associated with the channel.
Get Channel's Messages 3 params
get_channel_messagesget_channel_messagesRetrieves a list of messages (without the replies) from a specific channel of a specific group in Microsoft Teams based on the team or group ID, channel ID, and optionally the message ID you have specified. NOTE: If you specify the message ID then details of the specific message will be retrieved from Microsoft Teams
- Team/Group ID
group_idselect requiredSpecify the team from the list. The list shows Microsoft Teams teams (not all groups); the bare team ID is also accepted.
- Channel ID
channel_idselect requiredSpecify the channel of the selected team from the list. The list refreshes when the Team/Group ID changes. The bare channel ID is also accepted.
- Message ID
message_idtext(Optional) Specify the ID of the message whose details you want to retrieve from Microsoft Teams.
Get Chat Messages 1 param
get_chat_messagesget_chat_messagesRetrieves a list of messages in a chat based on the specified chat ID.
- Chat ID
chat_idtext requiredProvide ID of the chat messages to read the messages from. Note You can get the ID from the `Send Direct Message` action.
Returns@odata.context@odata.count@odata.nextLinkvalueGet Replies to Channel Message 4 params
get_replies_to_channel_messageget_replies_to_channel_messageRetrieves a list of replies to a specific message within a channel of a Microsoft Teams team.
- Team/Group ID
group_idselect requiredSpecify the team from the list. The list shows Microsoft Teams teams (not all groups); the bare team ID is also accepted.
- Channel ID
channel_idselect requiredSpecify the channel of the selected team from the list. The list refreshes when the Team/Group ID changes. The bare channel ID is also accepted.
- Message ID
message_idtext requiredSpecify the ID of the message in Microsoft Teams for which you want to retrieve a list of replies to the channel messages.
- Limit
limitinteger(Optional) Specify the maximum number of messages this operation should return from Microsoft Teams.
Returns@odata.context@odata.countvalueGet User's all Chat Messages 3 params
get_users_all_messagesget_users_all_messagesGet all messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats.
- Based On
based_onselect requiredSelect the parameter based on which you want to retrieve all chat messages. You can choose between User ID or User Principal Name.
Default
User IDOptions User IDUser Principal NameWhen Based On is User ID
- User ID
user_idtext requiredIf you select User ID, You must specify the ID of the User for which you want to retrieve all chat messages
When Based On is User Principal Name
- User Principal Name
user_idtext requiredIf you choose User Principal Name, then in the User Principal Name field, you must specify the principal name of the user whose user you want to retrieve all chat messages.
- Query
query_stringtextSpecify the date range filter for the lastModifiedDateTime and createdDateTime properties. The lastModifiedDateTime property supports the gt and lt operators. The createdDateTime property supports the lt operator.
- Limit
limitintegerLimit the number of items per response. Maximum allowed limit value is 50.
Default
50
Returns@odata.context@odata.count@odata.nextLinkvalueSend Message to Channel 3 params
send_messagesend_messageSends chat messages to a specified channel in the specified group in Microsoft Teams based on the team or group ID, channel ID, and message you have specified
- Team/Group ID
group_idselect requiredSpecify the team from the list. The list shows Microsoft Teams teams (not all groups); the bare team ID is also accepted.
- Channel ID
channel_idselect requiredSpecify the channel of the selected team from the list. The list refreshes when the Team/Group ID changes. The bare channel ID is also accepted.
- Message Type
message_typeselect requiredSelect the type of message that you want to send to the Microsoft Teams channel. You can choose from the following options:
Default
TextOptions TextAdaptive Card TemplateWhen Message Type is Text
- Message
messagetextarea requiredSpecify the content of the group message that you want to send to a specific channel on a specific group or team in Microsoft Teams, in the Message field.
When Message Type is Adaptive Card Template
- Adaptive Card Schema
adaptive_card_schemajson requiredSpecify adaptive cards schema in json format. For more info, refer https://adaptivecards.io/designer/.
Returns@odata.contextidreplyToIdetagmessageTypecreatedDateTimelastModifiedDateTimelastEditedDateTimedeletedDateTimesubjectsummarychatIdimportancelocalewebUrlpolicyViolationeventDetailfrombodychannelIdentityattachmentsmentionsreactionsReply Message 4 params
reply_messagesreply_messagesReplies to a specified chat message of a specified channel in the specified group in Microsoft Teams based on the group ID, channel ID, message ID, and message you have specified
- Group ID
group_idtext requiredSpecify the ID of the group in Microsoft Teams whose conversation information you want to retrieve and to which you want to reply.
- Channel ID
channel_idtext requiredSpecify the ID of the channel in Microsoft Teams on which you want to send the reply to the specific message.
- Message ID
message_idtext requiredSpecify the ID of the message in Microsoft Teams to which you want to send a reply.
- Message
messagetext requiredSpecify the content of the message that you want to send as a reply to the specified message.
Returns@odata.contextidreplyToIdetagmessageTypecreatedDateTimelastModifiedDateTimedeletedDateTimesubjectsummaryimportancelocalewebUrlpolicyViolationfrombodyattachmentsmentionsreactionsTag User in Message 5 params
messages_mentionmessages_mentionMentions a specific user to a specific message and channel in Microsoft Teams based on the team or group ID, channel ID, user ID, user display name, and message you have specified
- Team/Group ID
group_idtext requiredSpecify the ID of the team or group in Microsoft Teams in which you want to add a mention of the specific user. NOTE: Every team is associated with a group and the group has the same ID as the team.
- Channel ID
channel_idtext requiredSpecify the ID of the channel in Microsoft Teams in which you want to add a mention of the specific user.
- Message
messagetext requiredSpecify the content of the message in which you want to add a mention of the specific user.
- User ID
user_idtext requiredSpecify the ID of the user who you want to mention in the message.
- User Display Name
displayNametext requiredSpecify the display name of the user who you want to mention in the message.
Returns@odata.contextreplyToIdetagmessageTypecreatedDateTimelastModifiedDateTimelastEditedDateTimedeletedDateTimesubjectsummarychatIdimportancelocalewebUrlpolicyViolationeventDetailfrombodychannelIdentityattachmentsmentionsreactionsCreate Team 6 params
create_teamcreate_teamCreates a new team in Microsoft Teams based on the display name, description, and other input parameters you have specified
- Display Name
displayNametext requiredSpecify the display name of the team that you want to create in Microsoft Teams. NOTE: The maximum length for the team's display name is 256 characters.
- Description
descriptiontext requiredSpecify the description of the team that you want to create in Microsoft Teams.
- User ID
user_idtext(Optional) Specify the ID of the user whose teams you want to create in Microsoft Teams. NOTE: If the connector is configured using authentication tokens retrieved using the "Without a User – Application Permission" option, then is action works for all users by specifying the specific user ID. If the connector is configured using authentication tokens retrieved using the "On behalf of User – Delegate Permission" option, then only the current user is considered, and there is no need to specify the user ID. For more information, see the Getting Access Tokens section.
- Bind Team Template
teamsTemplatestext(Optional) Specify the name of the Bind Team Template for the team that you want to create in Microsoft Teams. Note: If you do not provide any value, the default template will be used.
- Visibility
visibilityselectSpecify the visibility to be set for the Office 365 group that you want to create in Microsoft Teams. You can choose from the following options: Private, Public, HiddenMembership, or "empty" (which is interpreted as Public).
Options PrivatePublicHiddenMembership - Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to specify for the team you want to create in Microsoft Teams. The additional properties signify additional fields associated with the team.
ReturnsstatusmessagedisplayNameGet User's Teams 1 param
list_user_joined_teamslist_user_joined_teamsRetrieves the teams in which the specified user is a direct member from Microsoft Teams based on the user ID you have specified
- User ID
user_idselectSpecify the user from the list (display name and UPN). The bare user ID is also accepted.
Returns@odata.context@odata.countvalueGet Team Details 2 params
get_teamget_teamRetrieves detailed information about a team from Microsoft Teams based on the team or group ID you have specified
- Team/Group ID
group_idselect requiredSpecify the team from the list. The list shows Microsoft Teams teams (not all groups); the bare team ID is also accepted.
- Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to specify for the team whose detailed information you want to retrieve from Microsoft Teams. The additional properties signify additional fields that you want to retrieve for the team from Microsoft Teams.
Returns@odata.contextidcreatedDateTimedisplayNamedescriptioninternalIdclassificationspecializationvisibilitywebUrlisArchivedisMembershipLimitedToOwnersdiscoverySettingsmemberSettingsguestSettingsmessagingSettingsfunSettingssummaryUpdate Team Details 2 params
update_teamupdate_teamUpdates the properties for an existing team in Microsoft Teams based on the team ID and properties you have specified
- Team ID
idtext requiredSpecify the ID of an existing team whose properties you want to update in Microsoft Teams.
- Custom Properties
custom_attributesjson required(Optional) Specify the additional properties, in the JSON format, that you want to specify for the team you want to update in Microsoft Team. The additional properties signify additional fields associated with the team.
ReturnsstatusmessageresultArchive Team 1 param
archive_teamarchive_teamArchives the specified team in Microsoft Teams based on the team ID you have specified. NOTE: When a team is archived, users can no longer send or like messages on any channel that is part of the archived team
- Team ID
idtext requiredSpecify the ID of an existing team that you want to archive in Microsoft Teams.
ReturnsstatusmessageUnarchive Team 1 param
unarchive_teamunarchive_teamRestores an archived team in Microsoft Teams based on the team ID you have specified. Unarchiving a team restores the user's ability to send messages to the team and edit the properties of the team
- Team ID
idtext requiredSpecify the ID of an existing team whose archive you want to restore from Microsoft Teams.
ReturnsstatusmessageClone Team 5 params
clone_teamclone_teamCreates a copy of a specified team in Microsoft Teams based on the team ID, display name, mail nickname, and other input parameters you have specified. This operation also creates a copy of the team's corresponding group
- Team ID
idtext requiredSpecify the ID of the existing team whose clone you want to create in Microsoft Teams.
- Display Name
displayNametext requiredSpecify the mail alias for the team that you have cloned in Microsoft Team, which must be unique in the organization. This parameter must be specified when a group is created or cloned. If this parameter is not specified, it will be computed from the Display Name. NOTE: Known issue: This parameter is currently being ignored.
- Mail Nick Name
mailNicknametext requiredSpecify the mail alias for the group, unique in the organization. This property must be specified when a group is created. If this property is not specified, it will be computed from the displayName. NOTE: Known issue: This parameter is currently being ignored.
- Parts to clone
partsToClonetext requiredSpecify a CSV list of the parts of the team you want to clone. Legal parts are "apps", "tabs", "settings", "channels", and "members".
- Visibility
visibilityselectSpecify the visibility to be set for the team that you want to clone in Microsoft Teams. You can choose from the following options: Private or Public (which is interpreted as Public).
Options PrivatePublic
ReturnsstatusmessageCreate Meeting 5 params
create_meetingcreate_meetingCreates a new meeting in Microsoft Teams based on the user ID, subject, and other input parameters you have specified
- Subject
subjecttext requiredSpecify a subject of the meeting that you want to create in Microsoft Teams.
- User ID
user_idtextSpecify the ID of the user using whose ID you want to create a meeting in Microsoft Teams. NOTE: If the connector is configured using authentication tokens retrieved using the "Without a User – Application Permission" option, then is action works for all users by specifying the specific user ID. If the connector is configured using authentication tokens retrieved using the "On behalf of User – Delegate Permission" option, then only the current user is considered, and there is no need to specify the user ID. For more information, see the Getting Access Tokens section.
- Start Time
startDateTimedatetimeSpecify the start time of the meeting that you want to create in Microsoft Teams.
- End Time
endDateTimedatetimeSpecify the end time of the meeting that you want to create in Microsoft Teams.
- Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to specify for the meeting you want to create in Microsoft Team. The additional properties signify additional fields associated with the meeting.
Returns@odata.contextidcreationDateTimestartDateTimeendDateTimejoinUrljoinWebUrlmeetingCodesubjectisBroadcastautoAdmittedUsersouterMeetingAutoAdmittedUsersisEntryExitAnnouncedallowedPresentersallowMeetingChatallowTeamworkReactionsallowAttendeeToEnableMicallowAttendeeToEnableCamerarecordAutomaticallyanonymizeIdentityForRolescapabilitiesvideoTeleconferenceIdexternalIdbroadcastSettingsjoinMeetingIdSettingsaudioConferencingmeetingInfoparticipantslobbyBypassSettingschatInfoGet Meeting Details 3 params
get_meetingget_meetingRetrieves details for a specific meeting from Microsoft Teams based on the user ID, meeting ID, and other input parameters you have specified
- Meeting ID
meeting_idtext requiredSpecify the ID of the meeting whose details you want to retrieve from Microsoft Teams.
- User ID
user_idtextSpecify the ID of the user whose details you want to retrieve from Microsoft Teams. NOTE: If the connector is configured using authentication tokens retrieved using the "Without a User – Application Permission" option, then is action works for all users by specifying the specific user ID. If the connector is configured using authentication tokens retrieved using the "On behalf of User – Delegate Permission" option, then only the current user is considered, and there is no need to specify the user ID. For more information, see the Getting Access Tokens section.
- Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to specify for the meeting whose details you want to retrieve from Microsoft Teams. The additional properties signify additional fields associated with the meeting.
Returns@odata.contextidcreationDateTimestartDateTimeendDateTimejoinUrljoinWebUrlmeetingCodesubjectisBroadcastautoAdmittedUsersouterMeetingAutoAdmittedUsersisEntryExitAnnouncedallowedPresentersallowMeetingChatallowTeamworkReactionsallowAttendeeToEnableMicallowAttendeeToEnableCamerarecordAutomaticallyanonymizeIdentityForRolescapabilitiesvideoTeleconferenceIdexternalIdbroadcastSettingsjoinMeetingIdSettingsaudioConferencingmeetingInfoparticipantslobbyBypassSettingschatInfoUpdate Meeting Details 8 params
update_meetingupdate_meetingUpdates the properties for an existing meeting in Microsoft Teams based on the user ID, meeting ID, and other input parameters you have specified
- Meeting ID
meeting_idtext requiredSpecify the ID of an existing meeting whose properties you want to update in Microsoft Teams.
- User ID
user_idtextSpecify the ID of a user whose associated meeting properties you want to update in Microsoft Teams. NOTE: If the connector is configured using authentication tokens retrieved using the "Without a User – Application Permission" option, then is action works for all users by specifying the specific user ID. If the connector is configured using authentication tokens retrieved using the "On behalf of User – Delegate Permission" option, then only the current user is considered, and there is no need to specify the user ID. For more information, see the Getting Access Tokens section.
- Start Time
startDateTimedatetimeSpecify the start time of the meeting that you want to update in Microsoft Teams.
- End Time
endDateTimedatetimeSpecify the end time of the meeting that you want to update in Microsoft Teams.
- Subject
subjecttextSpecify the subject of the meeting that you want to update in Microsoft Teams.
- Enable Camera
allowAttendeeToEnableCameracheckboxSelect this option if attendees can turn on their cameras.
Default
false - Enable Mic
allowAttendeeToEnableMiccheckboxSelect this option if attendees can turn on their microphones.
Default
false - Custom Properties
custom_attributesjson(Optional) Specify the additional properties, in the JSON format, that you want to specify for the meeting you want to update in Microsoft Team. The additional properties signify additional fields associated with the meeting.
Returns@odata.contextidcreationDateTimestartDateTimeendDateTimejoinUrljoinWebUrlmeetingCodesubjectisBroadcastautoAdmittedUsersouterMeetingAutoAdmittedUsersisEntryExitAnnouncedallowedPresentersallowMeetingChatallowTeamworkReactionsallowAttendeeToEnableMicallowAttendeeToEnableCamerarecordAutomaticallyanonymizeIdentityForRolescapabilitiesvideoTeleconferenceIdexternalIdbroadcastSettingsjoinMeetingIdSettingsaudioConferencingmeetingInfoparticipantslobbyBypassSettingschatInfoDelete Meeting 2 params
delete_meetingdelete_meetingDeletes an existing meeting in Microsoft Teams based on the user ID and meeting ID you have specified
- Meeting ID
meeting_idtext requiredSpecify the ID of an existing meeting that you want to delete from Microsoft Teams.
- User ID
user_idtextSpecify the ID of a user whose associated meeting you want to delete in Microsoft Teams. NOTE: If the connector is configured using authentication tokens retrieved using the "Without a User – Application Permission" option, then is action works for all users by specifying the specific user ID. If the connector is configured using authentication tokens retrieved using the "On behalf of User – Delegate Permission" option, then only the current user is considered, and there is no need to specify the user ID. For more information, see the Getting Access Tokens section.
ReturnsmessageSend Direct Message 3 params
send_chatsend_chatSends a new chat message to a specified user in Microsoft Teams based on the sender's and receiver's email address, and the message you have specified. NOTE: This action is not supported if the connector is configured using authentication tokens retrieved using the "Without a User – Application Permission" option. For more information, see the Getting Access Tokens section
- Sender User Email
sender_user_emailtext requiredSpecify the email address of your account from which you want to send a chat message.
- Receiver User Email
receiver_user_emailtext requiredSpecify the email address of the receiver who should receive the chat message.
- Message Type
message_typeselect requiredSelect if you need to send a simple text message or a formatted message. You can choose between Text and Card options.
Default
TextOptions TextCardCustom CardWhen Message Type is Text
- Message
messagetextarea requiredSpecify the content of the group message, in the Message field, that you want to send to a specific channel on a specific group or team in Microsoft Teams.
When Message Type is Card
- Title
titletextSpecify the title of the message card that you want to send to the specified user in Microsoft Teams.
- Subtitle
subtitletextSpecify the sub-title of the message card that you want to send to the specified user in Microsoft Teams.
- Body
bodytextarea requiredSpecify the content of the message that you want to send to the specified user in Microsoft Teams.
- Subject
subjecttextSpecify the subject of the message that you want to send to the specified user in Microsoft Teams.
- Buttons
buttonsjsonSpecify the list of button objects to be added to the message that you want to send to the specified user in Microsoft Teams.
When Message Type is Custom Card
- Adaptive Card Schema
card_definitionjson requiredProvide a adaptive card schema definition in JSON format. See https://adaptivecards.io/designer/
Default
{"type": "AdaptiveCard", "body": [{"type": "TextBlock", "text": "Provide IP to Block", "wrap": true}, {"type": "Input.Text", "placeholder": "Provide IP…
Returns@odata.contextreplyToIdetagmessageTypecreatedDateTimelastModifiedDateTimelastEditedDateTimedeletedDateTimesubjectsummarychatIdimportancelocalewebUrlchannelIdentitypolicyViolationeventDetailfrombodyattachmentsmentionsreactionsSend Bot Message/Input Form 1 param
send_message_or_approval_form_to_botsend_message_or_approval_form_to_botSends a manual input form or message to Teams based on the input object that you have specified. NOTE: This action works only if users have selected the 'Enable Bot Communication' option while configuring the connector and also configured the FortiSOAR for Microsoft Teams Application
- Message Type
typeselect requiredSelect the type of message you want to send to the Microsoft Teams
Default
Manual Input FormOptions Manual Input FormText MessageWhen Message Type is Manual Input Form
- Input
inputjson requiredSpecify the FortiSOAR Manual Input object that you want to send to Microsoft Teams. The form can either be an input form or an approval request that you want to send to Microsoft Teams and get users' responses.
When Message Type is Text Message
- Conversation ID
conversation_idtext requiredSpecify the ID of the conversation you want to send the message
- Message
messagetextarea requiredSpecify the content of the message that you want to send to Microsoft Teams using the FortiSOAR for Microsoft Teams Application.
ReturnsresultExecute API Request 4 params
execute_api_requestexecute_api_requestSends a request to a relative Microsoft Graph path (for example /users or /teams/{id}/channels) with this configuration's auth. Absolute URLs and path traversal are refused. Use it for Graph endpoints without a dedicated operation.
- Method
methodselect requiredHTTP method.
Options GETPOSTPATCHPUTDELETE - Endpoint
endpointtext requiredRelative Graph path starting with '/', for example /users?$top=5. Absolute URLs are refused.
- Body
bodyjsonJSON body for POST, PATCH or PUT.
- Query
queryjsonExtra query parameters as a JSON object.
Get Team Options (dropdown)
list_team_optionslist_team_optionsLists Microsoft Teams teams for the Team/Group dropdown.
No parameters.
Get Group Options (dropdown)
list_group_optionslist_group_optionsLists Microsoft 365 groups for the Group dropdown.
No parameters.
Get User Options (dropdown)
list_user_optionslist_user_optionsLists users for the User dropdown.
No parameters.
Get Channel Options (dropdown) 1 param
list_channel_optionslist_channel_optionsLists the channels of the Team/Group ID sibling for the Channel dropdown.
- Team/Group ID
group_idtextSibling value supplied by the UI (apiOnchange).