Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Users.Group
Synopsis
- getUserJoinedTeams :: Text -> AccessToken -> Req (Collection Group)
- getMeJoinedTeams :: AccessToken -> Req (Collection Group)
- getGroupsDriveItems :: Text -> AccessToken -> Req (Collection DriveItem)
- data Group = Group {
- gId :: Text
- gDisplayName :: Text
- gDescription :: Text
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
getMeJoinedTeams :: 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
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.9.0.0-KbVdTramaCB4EotzebotPv" '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)))) |