Skip to content
Closed
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
11 changes: 11 additions & 0 deletions docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ This command is based on a Microsoft Graph API that is currently in preview and

:::

## Permissions
<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|-----------------|---------------------------------|
| Microsoft Graph | RecordsManagement.ReadWrite.All |

</TabItem>
</Tabs>

## Examples

Create a retention label that retains documents and deletes them after one year.
Expand Down
13 changes: 12 additions & 1 deletion docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,20 @@ This command is based on a Microsoft Graph API that is currently in preview and

:::

## Permissions
<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|-----------------|----------------------------|
| Microsoft Graph | RecordsManagement.Read.All |

</TabItem>
</Tabs>

## Examples

Get a retention label
Get a retention label.

```sh
m365 purview retentionlabel get --id c37d695e-d581-4ae9-82a0-9364eba4291e
Expand Down
13 changes: 12 additions & 1 deletion docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,20 @@ This command is based on a Microsoft Graph API that is currently in preview and

:::

## Permissions
<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|-----------------|----------------------------|
| Microsoft Graph | RecordsManagement.Read.All |

</TabItem>
</Tabs>

## Examples

Get a list of retention labels
Get a list of retention labels.

```sh
m365 purview retentionlabel list
Expand Down
15 changes: 14 additions & 1 deletion docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Global from '/docs/cmd/_global.mdx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# purview retentionlabel remove

Expand Down Expand Up @@ -30,9 +32,20 @@ This command is based on a Microsoft Graph API that is currently in preview and

:::

## Permissions
<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|-----------------|---------------------------------|
| Microsoft Graph | RecordsManagement.ReadWrite.All |

</TabItem>
</Tabs>

## Examples

Delete a retention label
Delete a retention label.

```sh
m365 purview retentionlabel remove --id 'e554d69c-0992-4f9b-8a66-fca3c4d9c531'
Expand Down
13 changes: 13 additions & 0 deletions docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Global from '/docs/cmd/_global.mdx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# purview retentionlabel set

Expand Down Expand Up @@ -51,6 +53,17 @@ This command is based on a Microsoft Graph API that is currently in preview and

:::

## Permissions
<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|-----------------|---------------------------------|
| Microsoft Graph | RecordsManagement.ReadWrite.All |

</TabItem>
</Tabs>

## Examples

Update a retention label so that it retains documents as records and deletes them after one year.
Expand Down