|
| 1 | +--- |
| 2 | +external help file: sharepointonline.xml |
| 3 | +Module Name: Microsoft.Online.SharePoint.PowerShell |
| 4 | +online version: https://learn.microsoft.com/powershell/module/sharepoint-online/get-spocopilotagentinsightsreport |
| 5 | +applicable: SharePoint Online |
| 6 | +title: Get-SPOCopilotAgentInsightsReport |
| 7 | +schema: 2.0.0 |
| 8 | +author: bhagatshweta |
| 9 | +ms.author: bhagatshweta |
| 10 | +ms.reviewer: |
| 11 | +manager: hikakar |
| 12 | +--- |
| 13 | + |
| 14 | +# Get-SPOCopilotAgentInsightsReport |
| 15 | + |
| 16 | +## SYNOPSIS |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +## SYNTAX |
| 21 | + |
| 22 | +```powershell |
| 23 | +Get-SPOCopilotAgentInsightsReport [-ReportId <Guid>] [-Content <SPOCopilotAgentInsightType>] [-Action <ActionType>] |
| 24 | +``` |
| 25 | + |
| 26 | +## DESCRIPTION |
| 27 | + |
| 28 | +If this cmdlet is executed without any parameters, it displays the status of all active and completed reports with the following properties: |
| 29 | + |
| 30 | +| Property | Description | |
| 31 | +|:---------------------|:------------------------------------------------------------| |
| 32 | +| Id | The unique Id of the report. | |
| 33 | +| CreatedDateTimeInUtc | The date and time the report creation was triggered in UTC. | |
| 34 | +| Status | The status of the report. | |
| 35 | +| ReportPeriodInDays | The report duration in days. | |
| 36 | + |
| 37 | +If this cmdlet is executed with `-ReportId` as parameter and `-Content` as `CopilotAgentsOnSites`, a report with list of all sites on which a Copilot agent is created along with the names of the Copilot agent created in last N days will be displayed with the following properties: |
| 38 | + |
| 39 | +| Property | Description | |
| 40 | +|:------------------------|:---------------------------------------------------------| |
| 41 | +| Site name | The name of the SharePoint site. | |
| 42 | +| URL | The URL of the SharePoint site. | |
| 43 | +| Template | The Site template of the SharePoint site. | |
| 44 | +| Site owner | Name of the owner of the SharePoint site. | |
| 45 | +| Copilot name | Name of Copilot agent on the SharePoint site. | |
| 46 | +| Sensitivity | The sensitivity label of the SharePoint site. | |
| 47 | +| Restrict site access | RAC status (Yes/No) of the SharePoint site. | |
| 48 | +| Restrict site discovery | RCD status (Yes/No) of the SharePoint site. | |
| 49 | +| External sharing | External Sharing status (Yes/No) of the SharePoint site. | |
| 50 | + |
| 51 | +If this cmdlet is executed with `-ReportId` as parameter and `-Content` as `TopSites`, the top 100 records summarizing the number of Copilot Agents on sites created in last N days will be displayed with the following properties: |
| 52 | + |
| 53 | +| Property | Description | |
| 54 | +|:------------------------|:---------------------------------------------------------| |
| 55 | +| Site name | The name of the SharePoint site. | |
| 56 | +| URL | The URL of the SharePoint site. | |
| 57 | +| Template | The Site template of the SharePoint site. | |
| 58 | +| Site owner | Name of the owner of the SharePoint site. | |
| 59 | +| Copilot agents | Number of Copilot agents on the SharePoint site. | |
| 60 | +| Sensitivity | The sensitivity label of the SharePoint site. | |
| 61 | +| Restrict site access | RAC status (Yes/No) of the SharePoint site. | |
| 62 | +| Restrict site discovery | RCD status (Yes/No) of the SharePoint site. | |
| 63 | +| External sharing | External Sharing status (Yes/No) of the SharePoint site. | |
| 64 | + |
| 65 | +If this cmdlet is executed with `-ReportId` as parameter and `-Content` as `SiteDistribution`, a report showing Copilot distribution across sites in last N days will be displayed with the following properties: |
| 66 | + |
| 67 | +| Property | Description | |
| 68 | +|:---------------|:---------------------------------------------------------------------------------------------| |
| 69 | +| Site template | The Site template of the SharePoint site. | |
| 70 | +| Sites | Number of sites corresponding to that particular site template. | |
| 71 | +| Copilot agents | Name of Copilot agent on the SharePoint site corresponding to that particular site template. | |
| 72 | + |
| 73 | +If this cmdlet is executed with both the parameters, i.e. `-ReportId` and `-Action`, and if the value of `-Action` is set as `View`, it will display the same result as described above. If the value of `-Action` is set to `Download`, it will download the full report in CSV format to the same path from where the command was run. |
| 74 | + |
| 75 | +> [!NOTE] |
| 76 | +> All reports adhere to any retention timeline as per [Data Access Governance](/sharepoint/data-access-governance-reports). |
| 77 | +
|
| 78 | +## EXAMPLES |
| 79 | + |
| 80 | +### -----------------------EXAMPLE 1----------------------------- |
| 81 | + |
| 82 | +```powershell |
| 83 | +Get-SPOCopilotAgentInsightsReport |
| 84 | +``` |
| 85 | + |
| 86 | +Example 1 enables administrator to view the status of all active and completed reports. |
| 87 | + |
| 88 | +### -----------------------EXAMPLE 2----------------------------- |
| 89 | + |
| 90 | +```powershell |
| 91 | +Get-SPOCopilotAgentInsightsReport –ReportId 9d946216-afe7-49f5-8267-7b662435c70b |
| 92 | +``` |
| 93 | + |
| 94 | +Example 2 enables administrator to view the Copilot agent insights report of ReportId: `9d946216-afe7-49f5-8267-7b662435c70b`. |
| 95 | + |
| 96 | +### -----------------------EXAMPLE 3----------------------------- |
| 97 | + |
| 98 | +```powershell |
| 99 | +Get-SPOCopilotAgentInsightsReport – ReportId 9d946216-afe7-49f5-8267-7b662435c70b -Action Download |
| 100 | +``` |
| 101 | + |
| 102 | +Example 3 enables administrator to download the Copilot agent insights report of ReportId: `9d946216-afe7-49f5-8267-7b662435c70b` to the same path from where the command was run. |
| 103 | + |
| 104 | +## PARAMETERS |
| 105 | + |
| 106 | +### -ReportId |
| 107 | + |
| 108 | +It is an optional parameter, and it specifies the unique Id of the report to be viewed or downloaded. |
| 109 | + |
| 110 | +```yaml |
| 111 | +Type: Guid |
| 112 | +Parameter Sets: (All) |
| 113 | +Aliases: |
| 114 | +Applicable: SharePoint Online |
| 115 | + |
| 116 | +Required: False |
| 117 | +Position: Named |
| 118 | +Default value: None |
| 119 | +Accept pipeline input: False |
| 120 | +Accept wildcard characters: False |
| 121 | +``` |
| 122 | +
|
| 123 | +### -Content |
| 124 | +
|
| 125 | +It is an optional parameter, and it specifies the kind of report to view or download. There are 3 kinds of sub-reports: CopilotAgentsOnSites, TopSites, SiteDistribution. |
| 126 | +
|
| 127 | +```yaml |
| 128 | +Type: SPOCopilotAgentInsightType |
| 129 | +Parameter Sets: (All) |
| 130 | +Aliases: |
| 131 | +Applicable: SharePoint Online |
| 132 | + |
| 133 | +Required: False |
| 134 | +Position: Named |
| 135 | +Default value: CopilotAgentsOnSites |
| 136 | +Accept pipeline input: False |
| 137 | +Accept wildcard characters: False |
| 138 | +``` |
| 139 | +
|
| 140 | +### -Action |
| 141 | +
|
| 142 | +It is an optional parameter, and it specifies whether to view or download a specific report. |
| 143 | +
|
| 144 | +```yaml |
| 145 | +Type: ActionType |
| 146 | +Parameter Sets: (All) |
| 147 | +Aliases: |
| 148 | +Applicable: SharePoint Online |
| 149 | + |
| 150 | +Required: False |
| 151 | +Position: Named |
| 152 | +Default value: None |
| 153 | +Accept pipeline input: False |
| 154 | +Accept wildcard characters: False |
| 155 | +``` |
| 156 | +
|
| 157 | +### CommonParameters |
| 158 | +
|
| 159 | +This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). |
| 160 | + |
| 161 | +## RELATED LINKS |
| 162 | + |
| 163 | +[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) |
| 164 | + |
| 165 | +[Start-SPOCopilotAgentInsightsReport](./Start-SPOCopilotAgentInsightsReport.md) |
0 commit comments