forked from pnp/pnpjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
185 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# @pnp/graph/members | ||
|
||
Members are collections of users and other principals. Other API objects have membership so all membership functionality is encapsulated in one import. | ||
|
||
## IMember, IMembers | ||
|
||
[](../concepts/invokable.md) [](../concepts/selective-imports.md) | ||
|
||
## List Group Members/Owners | ||
|
||
Get the members and/or owners of a group. | ||
|
||
```TypeScript | ||
import { graphfi } from "@pnp/graph"; | ||
import "@pnp/graph/groups"; | ||
import "@pnp/graph/members"; | ||
|
||
const graph = graphfi(...); | ||
const members = await graph.groups.getById({groupId}).members(); | ||
const owners = await graph.groups.getById({groupId}).owners(); | ||
``` | ||
|
||
## Add Member/Owner | ||
|
||
Add a member/owner to an group | ||
|
||
```TypeScript | ||
import { graphfi } from "@pnp/graph"; | ||
import "@pnp/graph/groups"; | ||
import "@pnp/graph/members"; | ||
|
||
const graph = graphfi(...); | ||
const members = await graph.groups.getById({groupId}).members.add({directoryObjectId}). | ||
const owners = await graph.groups.getById({groupId}).owners.add({directoryObjectId}); | ||
``` | ||
|
||
## Remove Member/Owner | ||
|
||
Remove a member/owner to an group | ||
|
||
```TypeScript | ||
import { graphfi } from "@pnp/graph"; | ||
import "@pnp/graph/groups"; | ||
import "@pnp/graph/members"; | ||
|
||
const graph = graphfi(...); | ||
const members = await graph.groups.getById({groupId}).members.getById({directoryObjectId}).remove(). | ||
const owners = await graph.groups.getById({groupId}).owners.getById({directoryObjectId}).remove(); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,67 @@ | ||
import "../admin/index.js"; | ||
import "../analytics/index.js"; | ||
import "../appCatalog/index.js"; | ||
import "../attachments/index.js"; | ||
import "../calendars/index.js"; | ||
import "../cloud-communications/index.js"; | ||
import "../columns/index.js"; | ||
import "../compliance/index.js"; | ||
import "../contacts/index.js"; | ||
import "../content-types/index.js"; | ||
import "../conversations/index.js"; | ||
import "../directory-objects/index.js"; | ||
import "../files/index.js"; | ||
import "../groups/index.js"; | ||
import "../insights/index.js"; | ||
import "../invitations/index.js"; | ||
import "../members/index.js"; | ||
import "../list-item/index.js"; | ||
import "../lists/index.js"; | ||
import "../mail/index.js"; | ||
import "../files/index.js"; | ||
import "../members/index.js"; | ||
import "../onenote/index.js"; | ||
import "../operations/index.js"; | ||
import "../permissions/index.js"; | ||
import "../photos/index.js"; | ||
import "../places/index.js"; | ||
import "../planner/index.js"; | ||
import "../search/index.js"; | ||
import "../shares/index.js"; | ||
import "../sites/index.js"; | ||
import "../subscriptions/index.js"; | ||
import "../teams/index.js"; | ||
import "../taxonomy/index.js"; | ||
import "../to-do/index.js"; | ||
import "../users/index.js"; | ||
|
||
export * from "../appCatalog/index.js"; | ||
export * from "../attachments/index.js"; | ||
export * from "../calendars/index.js"; | ||
export * from "../cloud-communications/index.js"; | ||
export * from "../contacts/index.js"; | ||
export * from "../conversations/index.js"; | ||
export * from "../directory-objects/index.js"; | ||
export * from "../groups/index.js"; | ||
export * from "../insights/index.js"; | ||
export * from "../invitations/index.js"; | ||
export * from "../members/index.js"; | ||
export * from "../mail/index.js"; | ||
export * from "../files/index.js"; | ||
export * from "../onenote/index.js"; | ||
export * from "../operations/index.js"; | ||
export * from "../photos/index.js"; | ||
export * from "../planner/index.js"; | ||
export * from "../search/index.js"; | ||
export * from "../shares/index.js"; | ||
export * from "../subscriptions/index.js"; | ||
export * from "../teams/index.js"; | ||
export * from "../users/index.js"; | ||
export * from "../index.js"; | ||
export * from "../admin/index.js"; | ||
export * from "../analytics/index.js"; | ||
export * from "../appCatalog/index.js"; | ||
export * from "../attachments/index.js"; | ||
export * from "../calendars/index.js"; | ||
export * from "../cloud-communications/index.js"; | ||
export * from "../columns/index.js"; | ||
export * from "../compliance/index.js"; | ||
export * from "../contacts/index.js"; | ||
export * from "../content-types/index.js"; | ||
export * from "../conversations/index.js"; | ||
export * from "../directory-objects/index.js"; | ||
export * from "../files/index.js"; | ||
export * from "../groups/index.js"; | ||
export * from "../insights/index.js"; | ||
export * from "../invitations/index.js"; | ||
export * from "../list-item/index.js"; | ||
export * from "../lists/index.js"; | ||
export * from "../mail/index.js"; | ||
export * from "../members/index.js"; | ||
export * from "../onenote/index.js"; | ||
export * from "../operations/index.js"; | ||
export * from "../permissions/index.js"; | ||
export * from "../photos/index.js"; | ||
export * from "../places/index.js"; | ||
export * from "../planner/index.js"; | ||
export * from "../search/index.js"; | ||
export * from "../shares/index.js"; | ||
export * from "../sites/index.js"; | ||
export * from "../subscriptions/index.js"; | ||
export * from "../taxonomy/index.js"; | ||
export * from "../to-do/index.js"; | ||
export * from "../users/index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
import "./user.js"; | ||
|
||
export { | ||
IAttachment, | ||
IAttachments, | ||
ITodoAttachment, | ||
ITodoAttachments, | ||
IChecklistItem, | ||
IChecklistItems, | ||
ILinkedResource, | ||
ILinkedResources, | ||
ITask, | ||
ITodoTask, | ||
ITaskList, | ||
ITaskLists, | ||
ITodo, | ||
Attachment, | ||
Attachments, | ||
ChecklistItem, | ||
ChecklistItems, | ||
LinkedResource, | ||
LinkedResources, | ||
Tasks, | ||
ITodoTasks, | ||
TaskList, | ||
TaskLists, | ||
} from "./types.js"; |
Oops, something went wrong.