Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Users.Group
A Group
is an AAD group, which can be a Microsoft 365 group, or a security group.
A team in Microsoft Teams is a collection of channel objects. A channel represents a topic, and therefore a logical isolation of discussion, within a team.
Every team is associated with a Microsoft 365 group. The group has the same ID as the team - for example, /groups/{id}/team is the same
as /teams/{id}
.
Synopsis
- listUserJoinedTeams :: Text -> AccessToken -> Req (Collection Group)
- listMeJoinedTeams :: AccessToken -> Req (Collection Group)
- listUserAssociatedTeams :: Text -> AccessToken -> Req (Collection Group)
- listMeAssociatedTeams :: AccessToken -> Req (Collection Group)
- listTeamChannels :: Text -> AccessToken -> Req (Collection Channel)
- listChannelMessages :: Text -> Text -> AccessToken -> Req (Collection ChatMessage)
- getChannelMessage :: Text -> Text -> Text -> AccessToken -> Req ChatMessage
- listMessageReplies :: Text -> Text -> Text -> AccessToken -> Req (Collection ChatMessage)
- listGroupsDriveItems :: Text -> AccessToken -> Req (Collection DriveItem)
- data Group = Group {
- gId :: Text
- gDisplayName :: Text
- gDescription :: Text
- data Channel = Channel {
- chId :: Text
- chDisplayName :: Text
- chDescription :: Text
- data ChatMessage = ChatMessage {}
- data ChatMessageBody = ChatMessageBody {}
Teams
Joined teams
:: Text | User ID |
-> AccessToken | |
-> Req (Collection Group) |
Get the teams in Microsoft Teams that the given user is a direct member of.
GET /users/{id | user-principal-name}/joinedTeams
https://learn.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-1.0&tabs=http
listMeJoinedTeams :: AccessToken -> Req (Collection Group) Source #
Get the teams in Microsoft Teams that the current user is a direct member of.
GET /me/joinedTeams
https://learn.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-1.0&tabs=http
Associated teams
listUserAssociatedTeams Source #
:: Text | User ID |
-> AccessToken | |
-> Req (Collection Group) |
Get the list of teams in Microsoft Teams that a user is associated with.
GET /users/{user-id}/teamwork/associatedTeams
Currently, a user can be associated with a team in two different ways:
- A user can be a direct member of a team.
- A user can be a member of a shared channel that is hosted inside a team.
listMeAssociatedTeams :: AccessToken -> Req (Collection Group) Source #
Get the teams in Microsoft Teams that the current user is associated with (see getUserAssociatedTeams
).
Team channels
:: Text | team ID |
-> AccessToken | |
-> Req (Collection Channel) |
Get the list of channels either in this team or shared with this team (incoming channels).
GET /teams/{team-id}/allChannels
Channel messages
:: Text | team ID |
-> Text | channel ID |
-> AccessToken | |
-> Req (Collection ChatMessage) |
Retrieve the list of messages (without the replies) in a channel of a team.
To get the replies for a message, call the listMessageReplies
or the get message reply API.
GET /teams/{team-id}/channels/{channel-id}/messages
:: Text | team ID |
-> Text | channel ID |
-> Text | message ID |
-> AccessToken | |
-> Req ChatMessage |
Retrieve a single message or a message reply in a channel or a chat.
GET /teams/{team-id}/channels/{channel-id}/messages/{message-id}
:: Text | team ID |
-> Text | channel ID |
-> Text | message ID |
-> AccessToken | |
-> Req (Collection ChatMessage) |
List all the replies to a message in a channel of a team.
This method lists only the replies of the specified message, if any. To get the message itself, use getChannelMessage
.
GET teams{team-id}channels{channel-id}messages{message-id}/replies
Drive items
:: Text | Group ID |
-> AccessToken | |
-> Req (Collection DriveItem) |
Get the DriveItem
s in the Group
storage, starting from the root item
GET /groups/{group-id}/drive/root/children
https://learn.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0&tabs=http
NB : requires Files.Read.All
, since it tries to access all files a user has access to.
types
Groups are collections of principals with shared access to resources in Microsoft services or in your app. Different principals such as users, other groups, devices, and applications can be part of groups.
https://learn.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-1.0&tabs=http
Group | |
|
Instances
FromJSON Group Source # | |
ToJSON Group Source # | |
Defined in MSGraphAPI.Users.Group | |
Generic Group Source # | |
Show Group Source # | |
Eq Group Source # | |
Ord Group Source # | |
type Rep Group Source # | |
Defined in MSGraphAPI.Users.Group type Rep Group = D1 ('MetaData "Group" "MSGraphAPI.Users.Group" "ms-graph-api-0.11.0.0-5uHIC7CmGj38m31PNkaDsF" 'False) (C1 ('MetaCons "Group" 'PrefixI 'True) (S1 ('MetaSel ('Just "gId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "gDisplayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "gDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
Teams are made up of channels, which are the conversations you have with your teammates. Each channel is dedicated to a specific topic, department, or project. Channels are where the work actually gets done - where text, audio, and video conversations open to the whole team happen, where files are shared, and where tabs are added.
https://learn.microsoft.com/en-us/graph/api/resources/channel?view=graph-rest-1.0
Channel | |
|
Instances
FromJSON Channel Source # | |
ToJSON Channel Source # | |
Defined in MSGraphAPI.Users.Group | |
Generic Channel Source # | |
Show Channel Source # | |
Eq Channel Source # | |
Ord Channel Source # | |
type Rep Channel Source # | |
Defined in MSGraphAPI.Users.Group type Rep Channel = D1 ('MetaData "Channel" "MSGraphAPI.Users.Group" "ms-graph-api-0.11.0.0-5uHIC7CmGj38m31PNkaDsF" 'False) (C1 ('MetaCons "Channel" 'PrefixI 'True) (S1 ('MetaSel ('Just "chId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "chDisplayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "chDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
Chat messages
data ChatMessage Source #
An individual chat message within a channel or chat. The message can be a root message or part of a thread
https://learn.microsoft.com/en-us/graph/api/resources/chatmessage?view=graph-rest-1.0
Instances
data ChatMessageBody Source #