|
| 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-sporestrictedaccessforsitesinsights |
| 5 | +applicable: SharePoint Online |
| 6 | +title: Get-SPORestrictedAccessForSitesInsights |
| 7 | +schema: 2.0.0 |
| 8 | +author: ishwarit |
| 9 | +ms.author: itambakhe |
| 10 | +ms.reviewer: |
| 11 | +manager: |
| 12 | +--- |
| 13 | + |
| 14 | +# Get-SPORestrictedAccessForSitesInsights |
| 15 | + |
| 16 | +## SYNOPSIS |
| 17 | + |
| 18 | +This cmdlet enables the administrator to check status of all active and available reports about insights on sites protected and access denials by restricted access control. |
| 19 | + |
| 20 | +## SYNTAX |
| 21 | + |
| 22 | +```powershell |
| 23 | +Get-SPORestrictedAccessForSitesInsights -RACProtectedSites [-ReportId <Guid>] [-Action <ActionType>] [-InsightsSummary <Boolean>] |
| 24 | +``` |
| 25 | + |
| 26 | +```powershell |
| 27 | +Get-SPORestrictedAccessForSitesInsights -ActionsBlockedByPolicy [-ReportId <Guid>] [-Content <ContentType>] [-Action <ActionType>] |
| 28 | +``` |
| 29 | + |
| 30 | +## DESCRIPTION |
| 31 | + |
| 32 | +If this cmdlet is executed with `-RACProtectedSites` as parameter, it displays the status of all the active and completed reports. |
| 33 | + |
| 34 | +If this cmdlet is executed with `-RACProtectedSites` `-ReportId` as parameter, top 100 sites with the highest page views that are protected by restricted access control will be displayed. |
| 35 | + |
| 36 | +If this cmdlet is executed with `-RACProtectedSites` `-ReportId` `-InsightsSummary` as parameter, the count of sites protected with restricted access control compared to total number of sites will be displayed. |
| 37 | + |
| 38 | +If this cmdlet is executed with `-ActionsBlockedByPolicy` as parameter, it displays the status of all active and completed reports. |
| 39 | + |
| 40 | +If this cmdlet is executed with `-ActionsBlockedByPolicy` `-ReportId` `-Content TopSites` as parameter, top 100 sites with the highest access denials by restricted access control will be displayed. |
| 41 | + |
| 42 | +If this cmdlet is executed with `-ActionsBlockedByPolicy` `-ReportId` `-Content TopUsers` as parameter, top 10 users with the highest access denials by restricted access control will be displayed. |
| 43 | + |
| 44 | +If this cmdlet is executed with `-ActionsBlockedByPolicy` `-ReportId` `-Content AllDenials` as parameter, most recent 100 access denials by restricted access control in the last 28 days will be displayed. |
| 45 | + |
| 46 | +If this cmdlet is executed with `-ActionsBlockedByPolicy` `-ReportId` `-Content SiteDistribution` as parameter, distribution of access denials by restricted access control on different site types will be displayed. |
| 47 | + |
| 48 | +> [!NOTE] |
| 49 | +> All reports adhere to any retention timeline as per [Data Access Governance](/sharepoint/data-access-governance-reports). |
| 50 | +
|
| 51 | +## EXAMPLES |
| 52 | + |
| 53 | +### -----------------------EXAMPLE 1----------------------------- |
| 54 | + |
| 55 | +```powershell |
| 56 | +Get-SPORestrictedAccessForSitesInsights -RACProtectedSites |
| 57 | +``` |
| 58 | + |
| 59 | +Example 1 enables administrator to view the status of all active and completed reports on list of sites protected with restricted access control. |
| 60 | + |
| 61 | +### -----------------------EXAMPLE 2----------------------------- |
| 62 | + |
| 63 | +```powershell |
| 64 | +Get-SPORestrictedAccessForSitesInsights –RACProtectedSites -ReportId 9d946216-afe7-49f5-8267-7b662435c70b |
| 65 | +``` |
| 66 | + |
| 67 | +Example 2 enables administrator to view the report containing list of sites protected with restricted access control with ReportId: `9d946216-afe7-49f5-8267-7b662435c70b` |
| 68 | + |
| 69 | +### -----------------------EXAMPLE 3----------------------------- |
| 70 | + |
| 71 | +```powershell |
| 72 | +Get-SPORestrictedAccessForSitesInsights -ActionsBlockedByPolicy -ReportId 9d946216-afe7-49f5-8267-7b662435c70b -Content TopSites |
| 73 | +``` |
| 74 | + |
| 75 | +Example 3 enables administrator to view the report containing top sites with access denials due to restricted access control with ReportId: `9d946216-afe7-49f5-8267-7b662435c70b`. |
| 76 | + |
| 77 | +## PARAMETERS |
| 78 | + |
| 79 | +### -RACProtectedSites |
| 80 | + |
| 81 | +It is an optional parameter, and it specifies the type of report to be viewed or downloaded. |
| 82 | + |
| 83 | +```yaml |
| 84 | +Type: SwitchParameter |
| 85 | +Parameter Sets: (All) |
| 86 | +Aliases: |
| 87 | +Applicable: SharePoint Online |
| 88 | + |
| 89 | +Required: False |
| 90 | +Position: Named |
| 91 | +Default value: None |
| 92 | +Accept pipeline input: False |
| 93 | +Accept wildcard characters: False |
| 94 | +``` |
| 95 | +
|
| 96 | +### -ActionsBlockedByPolicy |
| 97 | +
|
| 98 | +It is an optional parameter, and it specifies the type of report to be viewed or downloaded. |
| 99 | +
|
| 100 | +```yaml |
| 101 | +Type: SwitchParameter |
| 102 | +Parameter Sets: (All) |
| 103 | +Aliases: |
| 104 | +Applicable: SharePoint Online |
| 105 | + |
| 106 | +Required: False |
| 107 | +Position: Named |
| 108 | +Default value: None |
| 109 | +Accept pipeline input: False |
| 110 | +Accept wildcard characters: False |
| 111 | +``` |
| 112 | +
|
| 113 | +### -ReportId |
| 114 | +
|
| 115 | +It is an optional parameter, and it specifies the unique Id of the report to be viewed or downloaded. |
| 116 | +
|
| 117 | +```yaml |
| 118 | +Type: Guid |
| 119 | +Parameter Sets: (All) |
| 120 | +Aliases: |
| 121 | +Applicable: SharePoint Online |
| 122 | + |
| 123 | +Required: False |
| 124 | +Position: Named |
| 125 | +Default value: None |
| 126 | +Accept pipeline input: False |
| 127 | +Accept wildcard characters: False |
| 128 | +``` |
| 129 | +
|
| 130 | +### -InsightsSummary |
| 131 | +
|
| 132 | +It is an optional parameter, and it specifies the subtype of the report to be viewed or downloaded. |
| 133 | +
|
| 134 | +```yaml |
| 135 | +Type: Bool |
| 136 | +Parameter Sets: (All) |
| 137 | +Aliases: |
| 138 | +Applicable: SharePoint Online |
| 139 | + |
| 140 | +Required: False |
| 141 | +Position: Named |
| 142 | +Default value: True |
| 143 | +Accept pipeline input: False |
| 144 | +Accept wildcard characters: False |
| 145 | +``` |
| 146 | +
|
| 147 | +### -Content |
| 148 | +
|
| 149 | +It is an optional parameter, and it specifies the subtype of the report to be viewed or downloaded. |
| 150 | +
|
| 151 | +```yaml |
| 152 | +Type: ContentType |
| 153 | +Parameter Sets: (All) |
| 154 | +Aliases: |
| 155 | +Applicable: SharePoint Online |
| 156 | + |
| 157 | +Required: False |
| 158 | +Position: Named |
| 159 | +Default value: None |
| 160 | +Accept pipeline input: False |
| 161 | +Accept wildcard characters: False |
| 162 | +``` |
| 163 | +
|
| 164 | +### -Action |
| 165 | +
|
| 166 | +It is an optional parameter, and it specifies whether to view or download a specific report. |
| 167 | +
|
| 168 | +```yaml |
| 169 | +Type: ActionType |
| 170 | +Parameter Sets: (All) |
| 171 | +Aliases: |
| 172 | +Applicable: SharePoint Online |
| 173 | + |
| 174 | +Required: False |
| 175 | +Position: Named |
| 176 | +Default value: None |
| 177 | +Accept pipeline input: False |
| 178 | +Accept wildcard characters: False |
| 179 | +``` |
| 180 | +
|
| 181 | +### CommonParameters |
| 182 | +
|
| 183 | +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). |
| 184 | + |
| 185 | +## RELATED LINKS |
| 186 | + |
| 187 | +[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) |
| 188 | + |
| 189 | +[Start-SPORestrictedAccessForSitesInsights](./Start-SPORestrictedAccessForSitesInsights.md) |
0 commit comments