Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Marketplace Contribution] MicrosoftGraphTeams - Content Pack Update #31387

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -3,6 +3,7 @@


''' IMPORTS '''

from MicrosoftApiModule import *
import urllib3

Expand Down Expand Up @@ -145,11 +146,17 @@ def create_chat(self, subject: str, members: list, user_id: str = None, type='gr
user_id = user_id if user_id else self.delegated_user
suffix = 'chats'

json_data = {
'chatType': type,
'topic': subject,
'members': self._build_members_input(user_id, members)
}
if type == "group":
json_data = {
'chatType': type,
'topic': subject,
'members': self._build_members_input(user_id, members)
}
else:
json_data = {
'chatType': type,
'members': self._build_members_input(user_id, members)
}
return self.ms_client.http_request(method='POST', url_suffix=suffix, json_data=json_data)

def get_chat(self, chat_id: str, user_id: str = None) -> dict:
Expand Down
Expand Up @@ -81,7 +81,7 @@ script:
- description: An OData query. See README for OData usage examples.
name: odata
- defaultValue: "20"
description: Limit chats to fetch in one request
description: Limit chats to fetch in one request.
name: limit
description: Retrieve the list of chats that the user is part of.
name: msgraph-teams-list-chats
Expand All @@ -107,9 +107,8 @@ script:
- arguments:
- description: User ID to use Teams as (can be principal ID (email address)).
name: user_id
- description: The title of the chat.
- description: The title of the chat. Supported only for "group" type.
name: subject
required: true
- auto: PREDEFINED
default: true
defaultValue: group
Expand Down Expand Up @@ -228,7 +227,7 @@ script:
- auto: PREDEFINED
default: true
defaultValue: "true"
description: Allowing sharing of the whole history of the chat
description: Allowing sharing of the whole history of the chat.
name: share_history
predefined:
- "true"
Expand All @@ -243,7 +242,7 @@ script:
required: true
- default: true
defaultValue: "50"
description: Limit messages to fetch in one request
description: Limit messages to fetch in one request.
name: limit
description: Retrieve the list of messages in a chat.
name: msgraph-teams-list-messages
Expand Down Expand Up @@ -301,13 +300,13 @@ script:
name: msgraph-teams-generate-login-url
arguments: []
- description: Run this command if for some reason you need to rerun the authentication process.
execution: false
name: msgraph-teams-auth-reset
arguments: []
dockerimage: demisto/crypto:1.0.0.68914
dockerimage: demisto/crypto:1.0.0.83106
script: ''
subtype: python3
type: python
runonce: false
fromversion: 6.0.0
tests:
- No tests (auto formatted)
Expand Up @@ -2,8 +2,8 @@ Microsoft integrations (Graph and Azure) in Cortex XSOAR use Azure Active Direct

# Self-Deployed Application
To use a [Self-Deployed Application](https://xsoar.pan.dev/docs/reference/articles/microsoft-integrations---authentication#self-deployed-application)
, you need to add a [new Azure App Registration in the Azure Portal](https://docs.microsoft.com/en-us/graph/auth-register-app-v2#register-a-new-application-using-the-azure-portal).

, you need to add a [new Azure App Registration in the Azure Portal](https://docs.microsoft.com/en-us/graph/auth-register-app-v2#register-a-new-application-using-the-azure-portal).
### Authentication Using the User - Authorization Code Flow

Follow these steps for [Authorization Code flow](https://xsoar.pan.dev/docs/reference/articles/microsoft-integrations---authentication#authorize-on-behalf-of-a-user) configuration:
Expand All @@ -26,7 +26,4 @@ Chat.ReadWrite - Delegated
ChatMember.Read - Delegated
ChatMember.ReadWrite - Delegated
ChatMessage.Read - Delegated
ChatMessage.Send - Delegated

---
[View Integration Documentation](https://xsoar.pan.dev/docs/reference/integrations/microsoft-graph-teams)
ChatMessage.Send - Delegated
7 changes: 7 additions & 0 deletions Packs/MicrosoftGraphTeams/ReleaseNotes/1_1_0.md
@@ -0,0 +1,7 @@

#### Integrations

##### O365 Teams (Using Graph API)

- Fixed msgraph-teams-create-chat command to allow user to create oneOnone chat without topic.
- Updated the Docker image to: *demisto/crypto:1.0.0.83106*.
2 changes: 1 addition & 1 deletion Packs/MicrosoftGraphTeams/pack_metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "MicrosoftGraphTeams",
"description": "O365 Teams (Using Graph API) gives you authorized access to a user’s Teams enabling you to facilitate communication through teams as that user, or read conversations and/or messages of that user.",
"support": "community",
"currentVersion": "1.0.14",
"currentVersion": "1.1.0",
"author": "Joachim Bockland",
"url": "",
"email": "",
Expand Down