Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
external help file: sharepointonline.xml
Module Name: Microsoft.Online.SharePoint.PowerShell
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/get-spoauditdatacollectionstatusforactivityinsights
applicable: SharePoint Online
title: Get-SPOAuditDataCollectionStatusForActivityInsights
schema: 2.0.0
author: pvrk
ms.author: pullabhk
manager:
ms.reviewer:
---

# Get-SPOAuditDataCollectionStatusForActivityInsights

## SYNOPSIS

Lists the current status of audit data collection for reports based on activities within the last 28 days, from SharePoint Admin Center.
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from Copilot:

Lists the current status of audit data collection for reports on activities from the last 28 days in the SharePoint admin center. #Closed


## SYNTAX

```
Get-SPOAuditDataCollectionStatusForActivityInsights [-ReportEntity <OptInReportEntityEnum>]
[<CommonParameters>]
```

## DESCRIPTION

SharePoint administrators can generate reports based on activities within the last 28 days such as Sharing link reports, content shared with Everyone except external users etc from SharePoint admin center. These reports require audit data to be collected after approved by SharePoint admin. This command gives the current status of the relevant audit data collection.
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from Copilot:

SharePoint Administrators can generate reports on activities from the last 28 days, such as sharing link reports and content shared with everyone except external users, from the SharePoint admin center. These reports need audit data, which must be collected after approval by the SharePoint Administrator. This cmdlet shows the current status of the audit data collection. #Closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like Teams chat Copilot and Work Copilot are giving different strings for the same prompt. I have used Teams chat Copilot earlier. I can see that your suggestions are closer to the responses by Work Copilot. I have replaced the current text with the suggested ones after confirming again with Work Copilot and will use the Work Copilot here onwards.


## EXAMPLES

### Example 1

```powershell
PS C:\> Get-SPOAuditDataCollectionStatusForActivityInsights -ReportEntity SharingLinks_Anyone
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS C:>

(here and others)

remove this PS C:\> #Closed

```

This command fetches the current status of audit data collection for the report on sites with most number of "Anyone" sharing links generated in the last 28 days.
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

command

(here and others)

use "This example" instead of "This cmdlet" #Closed


## PARAMETERS

### -ReportEntity

Specifies the entity for which the corresponding audit data collection status should be shown
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shown

(here and others)

sentences must end with . #Closed


```yaml
Type: OptInReportEntityEnum
Parameter Sets: (All)
Aliases:
Accepted values: SharingLinks_Anyone, SharingLinks_PeopleInYourOrg, SharingLinks_Guests, EveryoneExceptExternalUsersAtSite, EveryoneExceptExternalUsersForItems, CopilotAppInsights
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SharingLinks_Anyone, SharingLinks_PeopleInYourOrg, SharingLinks_Guests

this is why I want the server code to use PascalCase enums instead of _, since this is now mixed #Closed


Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(here and others)

use this updated version:

This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-ProgressAction`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters).
``` #Closed

## INPUTS

### None

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Start-SPOAuditDataCollectionForActivityInsights](./Start-SPOAuditDataCollectionForActivityInsights.md)
[Stop-SPOAuditDataCollectionForActivityInsights](./Stop-SPOAuditDataCollectionForActivityInsights.md)
[Start-SPODataAccessGovernanceInsight](./Start-SPODataAccessGovernanceInsight.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
external help file: sharepointonline.xml
Module Name: Microsoft.Online.SharePoint.PowerShell
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/start-spoauditdatacollectionforactivityinsights
applicable: SharePoint Online
title: Start-SPOAuditDataCollectionForActivityInsights
schema: 2.0.0
author: pvrk
ms.author: pullabhk
manager:
ms.reviewer:
---

# Start-SPOAuditDataCollectionForActivityInsights

## SYNOPSIS

This cmdlet starts collecting relevant audit data for reports, based on activities within the last 28 days, such as Sharing link reports, content shared with Everyone except external users etc from SharePoint admin center.
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Copilot:

This cmdlet starts collecting audit data for reports on activities from the last 28 days, such as sharing link reports and content shared with everyone except external users, from the SharePoint admin center. #Closed


## SYNTAX

```
Start-SPOAuditDataCollectionForActivityInsights -ReportEntity <OptInReportEntityEnum> [<CommonParameters>]
```

## DESCRIPTION

This cmdlet starts collecting relevant audit data for reports, based on activites related to sharing and access. Reports are available for the following scenarios:
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Copilot:

This cmdlet starts collecting audit data for reports on sharing and access activities from the last 28 days. Reports are available for the following scenarios: #Closed


- Sharing links created in last 28 days (Anyone, People-in-your-org, Specific people shared externally).
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in

in last --> in the last

here and others #Closed

Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyone, People-in-your-org, Specific people shared externally

are these the "official" names for these -- including casing? #Closed

Copy link
Copy Markdown
Contributor Author

@pvrk pvrk Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MS public document regarding sharing links

"Anyone"
"People in Your Organization"
"People you choose" - under the heading "Share with specific people" - This product specifically focuses on 'external' people

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use the same wording as them -- eg should be "People in your organization"

@pvrk

- Content shared with Everyone except external users (EEEU) in last 28 days.
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everyone except external users (EEEU)

what's the official name for this (including casing)? #Closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Everyone except external users" is the official name.

image

- Copilot agents created in last 28 days *(Private Preview)*

## EXAMPLES

### Example 1
```powershell
PS C:\> Start-SPOAuditDataCollectionForActivityInsights -ReportEntity SharingLinks_Anyone
```

This cmdlet will start collecting audit data related to the generation of 'Anyone' sharing links from the moment it is executed.
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it

what does "it" refer to here -- the cmdlet or the audit data? Please reword the sentence so its clear #Closed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apply to the Stop- cmdlet too


## PARAMETERS

### -ReportEntity

Specifies the entity for which the corresponding audit data should be collected.

```yaml
Type: OptInReportEntityEnum
Parameter Sets: (All)
Aliases:
Accepted values: SharingLinks_Anyone, SharingLinks_PeopleInYourOrg, SharingLinks_Guests, EveryoneExceptExternalUsersAtSite, EveryoneExceptExternalUsersForItems, CopilotAppInsights

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Stop-SPOAuditDataCollectionForActivityInsights](./Stop-SPOAuditDataCollectionForActivityInsights.md)
[Get-SPOAuditDataCollectionStatusForActivityInsights](./Get-SPOAuditDataCollectionStatusForActivityInsights.md)
[Start-SPODataAccessGovernanceInsight](./Start-SPODataAccessGovernanceInsight.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
external help file: sharepointonline.xml
Module Name: Microsoft.Online.SharePoint.PowerShell
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/stop-spoauditdatacollectionforactivityinsights
applicable: SharePoint Online
title: Stop-SPOAuditDataCollectionForActivityInsights
schema: 2.0.0
author: pvrk
ms.author: pullabhk
manager:
ms.reviewer:
---

# Stop-SPOAuditDataCollectionForActivityInsights

## SYNOPSIS

This cmdlet stops collecting relevant audit data for reports, based on activities within the last 28 days, such as Sharing link reports, content shared with Everyone except external users etc from SharePoint admin center.
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Copilot:

This cmdlet stops collecting audit data for reports on activities from the last 28 days, such as sharing link reports and content shared with everyone except external users, from the SharePoint admin center. #Closed


## SYNTAX

```
Stop-SPOAuditDataCollectionForActivityInsights -ReportEntity <OptInReportEntityEnum> [<CommonParameters>]
```

## DESCRIPTION
This cmdlet stops collecting relevant audit data for reports, based on activites related to sharing and access. Reports are available for the following scenarios:

- Sharing links created in last 28 days (Anyone, People-in-your-org, Specific people shared externally).
- Content shared with Everyone except external users (EEEU) in last 28 days.
- Copilot agents created in last 28 days *(Private Preview)*
Copy link
Copy Markdown
Contributor

@samkabue samkabue Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comments from Start- cmdlet apply #Closed


## EXAMPLES

### Example 1
```powershell
PS C:\> Stop-SPOAuditDataCollectionForActivityInsights -ReportEntity SharingLinks_Anyone
```

This cmdlet will stop collecting audit data related to the generation of 'Anyone' sharing links from the moment it is executed.

## PARAMETERS

### -ReportEntity

Specifies the entity for which the corresponding audit data should not be collected.

```yaml
Type: OptInReportEntityEnum
Parameter Sets: (All)
Aliases:
Accepted values: SharingLinks_Anyone, SharingLinks_PeopleInYourOrg, SharingLinks_Guests, EveryoneExceptExternalUsersAtSite, EveryoneExceptExternalUsersForItems, CopilotAppInsights

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS

[Start-SPOAuditDataCollectionForActivityInsights](./Start-SPOAuditDataCollectionForActivityInsights.md)
[Get-SPOAuditDataCollectionStatusForActivityInsights](./Get-SPOAuditDataCollectionStatusForActivityInsights.md)
[Start-SPODataAccessGovernanceInsight](./Start-SPODataAccessGovernanceInsight.md)