ms-graph-api-0.11.0.0: Microsoft Graph API
Safe HaskellSafe-Inferred
LanguageHaskell2010

MSGraphAPI.Users.Group

Description

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

Teams

Joined teams

listUserJoinedTeams Source #

Arguments

:: 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 #

Arguments

:: 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

listTeamChannels Source #

Arguments

:: 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

listChannelMessages Source #

Arguments

:: 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

getChannelMessage Source #

Arguments

:: 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}

listMessageReplies Source #

Arguments

:: 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

listGroupsDriveItems Source #

Arguments

:: Text

Group ID

-> AccessToken 
-> Req (Collection DriveItem) 

Get the DriveItems 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

data Group Source #

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

Constructors

Group 

Instances

Instances details
FromJSON Group Source # 
Instance details

Defined in MSGraphAPI.Users.Group

ToJSON Group Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Generic Group Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Associated Types

type Rep Group :: Type -> Type #

Methods

from :: Group -> Rep Group x #

to :: Rep Group x -> Group #

Show Group Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Methods

showsPrec :: Int -> Group -> ShowS #

show :: Group -> String #

showList :: [Group] -> ShowS #

Eq Group Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Methods

(==) :: Group -> Group -> Bool #

(/=) :: Group -> Group -> Bool #

Ord Group Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Methods

compare :: Group -> Group -> Ordering #

(<) :: Group -> Group -> Bool #

(<=) :: Group -> Group -> Bool #

(>) :: Group -> Group -> Bool #

(>=) :: Group -> Group -> Bool #

max :: Group -> Group -> Group #

min :: Group -> Group -> Group #

type Rep Group Source # 
Instance details

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))))

data Channel Source #

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

Constructors

Channel 

Instances

Instances details
FromJSON Channel Source # 
Instance details

Defined in MSGraphAPI.Users.Group

ToJSON Channel Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Generic Channel Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Associated Types

type Rep Channel :: Type -> Type #

Methods

from :: Channel -> Rep Channel x #

to :: Rep Channel x -> Channel #

Show Channel Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Eq Channel Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Methods

(==) :: Channel -> Channel -> Bool #

(/=) :: Channel -> Channel -> Bool #

Ord Channel Source # 
Instance details

Defined in MSGraphAPI.Users.Group

type Rep Channel Source # 
Instance details

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

Instances details
FromJSON ChatMessage Source # 
Instance details

Defined in MSGraphAPI.Users.Group

ToJSON ChatMessage Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Generic ChatMessage Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Associated Types

type Rep ChatMessage :: Type -> Type #

Show ChatMessage Source # 
Instance details

Defined in MSGraphAPI.Users.Group

type Rep ChatMessage Source # 
Instance details

Defined in MSGraphAPI.Users.Group

type Rep ChatMessage = D1 ('MetaData "ChatMessage" "MSGraphAPI.Users.Group" "ms-graph-api-0.11.0.0-5uHIC7CmGj38m31PNkaDsF" 'False) (C1 ('MetaCons "ChatMessage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chamBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMessageBody) :*: S1 ('MetaSel ('Just "chamId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "chamCreatedDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ZonedTime) :*: S1 ('MetaSel ('Just "chamDeletedDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ZonedTime)))))

data ChatMessageBody Source #

Constructors

ChatMessageBody 

Fields

Instances

Instances details
FromJSON ChatMessageBody Source # 
Instance details

Defined in MSGraphAPI.Users.Group

ToJSON ChatMessageBody Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Generic ChatMessageBody Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Associated Types

type Rep ChatMessageBody :: Type -> Type #

Show ChatMessageBody Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Eq ChatMessageBody Source # 
Instance details

Defined in MSGraphAPI.Users.Group

Ord ChatMessageBody Source # 
Instance details

Defined in MSGraphAPI.Users.Group

type Rep ChatMessageBody Source # 
Instance details

Defined in MSGraphAPI.Users.Group

type Rep ChatMessageBody = D1 ('MetaData "ChatMessageBody" "MSGraphAPI.Users.Group" "ms-graph-api-0.11.0.0-5uHIC7CmGj38m31PNkaDsF" 'False) (C1 ('MetaCons "ChatMessageBody" 'PrefixI 'True) (S1 ('MetaSel ('Just "chambId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))