Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/docs/cmd/spo/contenttype/contenttype-add.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,25 @@ If the specified content type already exists, you will get a _A duplicate conten

The ID of the content type specifies the parent content type from which this content type inherits.

## Permissions

<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|------------|-----------------|
| SharePoint | AllSites.Manage |

</TabItem>
<TabItem value="Application">

| Resource | Permissions |
|------------|------------------|
| SharePoint | Sites.Manage.All |

</TabItem>
</Tabs>
Comment on lines +51 to +68

## Examples

Create a site content type that inherits from the List item content type.
Expand Down
19 changes: 19 additions & 0 deletions docs/docs/cmd/spo/contenttype/contenttype-get.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,25 @@ m365 spo contenttype get [options]

If no content type with the specified is found in the site or the list, you will get the _Content type with ID 0x010012 not found_ error.

## Permissions

<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|------------|---------------|
| SharePoint | AllSites.Read |

</TabItem>
<TabItem value="Application">

| Resource | Permissions |
|------------|----------------|
| SharePoint | Sites.Read.All |

</TabItem>
</Tabs>

## Examples

Retrieve site content type by id.
Expand Down
19 changes: 19 additions & 0 deletions docs/docs/cmd/spo/contenttype/contenttype-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@ m365 spo contenttype list [options]

<Global />

## Permissions

<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|------------|---------------|
| SharePoint | AllSites.Read |

</TabItem>
<TabItem value="Application">

| Resource | Permissions |
|------------|----------------|
| SharePoint | Sites.Read.All |

</TabItem>
</Tabs>

## Examples

Retrieve site content types.
Expand Down
21 changes: 21 additions & 0 deletions docs/docs/cmd/spo/contenttype/contenttype-remove.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Global from '../../_global.mdx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# spo contenttype remove

Expand Down Expand Up @@ -34,6 +36,25 @@ If the specified content type is in use by a list and cannot be removed, you wil

The content type you wish to remove can be selected by the ID or Name of the content type. Either ID or Name parameter must be specified.

## Permissions

<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|------------|----------------------|
| SharePoint | AllSites.FullControl |

</TabItem>
<TabItem value="Application">

| Resource | Permissions |
|------------|-----------------------|
| SharePoint | Sites.FullControl.All |

</TabItem>
</Tabs>

## Examples

Remove a site content type by ID
Expand Down
21 changes: 21 additions & 0 deletions docs/docs/cmd/spo/contenttype/contenttype-set.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Global from '../../_global.mdx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# spo contenttype set

Expand Down Expand Up @@ -45,6 +47,25 @@ When specifying the `--updateChildren` flag, SharePoint will only propagate the

:::

## Permissions

<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|------------|-----------------|
| SharePoint | AllSites.Manage |

</TabItem>
<TabItem value="Application">

| Resource | Permissions |
|------------|------------------|
| SharePoint | Sites.Manage.All |

</TabItem>
</Tabs>

## Examples

Move site content type to a different group.
Expand Down
19 changes: 19 additions & 0 deletions docs/docs/cmd/spo/contenttype/contenttype-sync.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,25 @@ m365 spo contenttype sync [options]

<Global />

## Permissions

<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|------------|-----------------|
| SharePoint | AllSites.Manage |

</TabItem>
<TabItem value="Application">

| Resource | Permissions |
|------------|------------------|
| SharePoint | Sites.Manage.All |

</TabItem>
</Tabs>
Comment on lines +41 to +56

## Examples

Syncs a given published content type from the hub to the specified site.
Expand Down