Skip to content

Commit 3d3c64e

Browse files
authored
Merge pull request #756 from pvrk/pvrk-sharepointps-oct
New PS commands for DAG
2 parents 36f68e8 + 239e17c commit 3d3c64e

File tree

7 files changed

+854
-31
lines changed

7 files changed

+854
-31
lines changed

.openpublishing.redirection.json

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,6 @@
55
"redirect_url": "/powershell/module/sharepoint-online",
66
"redirect_document_id": false
77
},
8-
{
9-
"source_path": "sharepoint/virtual-folder/sharepoint-online/Export-SPODataAccessGovernanceInsight.md",
10-
"redirect_url": "/powershell/module/sharepoint-online",
11-
"redirect_document_id": false
12-
},
13-
{
14-
"source_path": "sharepoint/virtual-folder/sharepoint-online/Get-SPODataAccessGovernanceInsight.md",
15-
"redirect_url": "/powershell/module/sharepoint-online",
16-
"redirect_document_id": false
17-
},
18-
{
19-
"source_path": "sharepoint/virtual-folder/sharepoint-online/Get-SPOSiteReview.md",
20-
"redirect_url": "/powershell/module/sharepoint-online",
21-
"redirect_document_id": false
22-
},
238
{
249
"source_path": "sharepoint/virtual-folder/sharepoint-online/Get-SPOTenantRestrictedSearchAllowedList.md",
2510
"redirect_url": "/powershell/module/sharepoint-online",
@@ -30,11 +15,6 @@
3015
"redirect_url": "/powershell/module/sharepoint-online",
3116
"redirect_document_id": false
3217
},
33-
{
34-
"source_path": "sharepoint/virtual-folder/sharepoint-online/Remove-SPODataAccessGovernanceInsight.md",
35-
"redirect_url": "/powershell/module/sharepoint-online",
36-
"redirect_document_id": false
37-
},
3818
{
3919
"source_path": "sharepoint/virtual-folder/sharepoint-online/Remove-SPOTenantRestrictedSearchAllowedList.md",
4020
"redirect_url": "/powershell/module/sharepoint-online",
@@ -44,16 +24,6 @@
4424
"source_path": "sharepoint/virtual-folder/sharepoint-online/Set-SPOTenantRestrictedSearchMode.md",
4525
"redirect_url": "/powershell/module/sharepoint-online",
4626
"redirect_document_id": false
47-
},
48-
{
49-
"source_path": "sharepoint/virtual-folder/sharepoint-online/Start-SPODataAccessGovernanceInsight.md",
50-
"redirect_url": "/powershell/module/sharepoint-online",
51-
"redirect_document_id": false
52-
},
53-
{
54-
"source_path": "sharepoint/virtual-folder/sharepoint-online/Start-SPOSiteReview.md",
55-
"redirect_url": "/powershell/module/sharepoint-online",
56-
"redirect_document_id": false
57-
}
27+
}
5828
]
5929
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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/export-spodataaccessgovernanceinsight
5+
applicable: SharePoint Online
6+
title: Export-SPODataAccessGovernanceInsight
7+
schema: 2.0.0
8+
author: pvrk
9+
ms.author: pullabhk
10+
manager:
11+
ms.reviewer:
12+
---
13+
14+
# Export-SPODataAccessGovernanceInsight
15+
16+
## SYNOPSIS
17+
18+
This cmdlet downloads the Data Access Governance (DAG) reports to the current working directory.
19+
20+
## SYNTAX
21+
22+
```
23+
Export-SPODataAccessGovernanceInsight -ReportID <Guid> [<CommonParameters>]
24+
```
25+
26+
## DESCRIPTION
27+
28+
This cmdlet exports or downloads the DAG report, specified by the `ReportID`, to the current working directory. The `ReportID` is shown in the output of the [Start-SPODataAccessGovernanceInsight](./Start-SPODataAccessGovernanceInsight.md) command. It can also be fetched from the output of the [Get-SPODataAccessGovernanceInsight](./Get-SPODataAccessGovernanceInsight.md) command.
29+
30+
## EXAMPLES
31+
32+
### Example 1
33+
34+
```powershell
35+
Export-SPODataAccessGovernanceInsight -ReportID 28f4c550-215a-472b-a123-c11e5fa8804c
36+
```
37+
38+
The above example downloads the report of the given ID to the current working directory.
39+
40+
## PARAMETERS
41+
42+
### -ReportID
43+
44+
Specifies the ID of the DAG report to be downloaded.
45+
46+
```yaml
47+
Type: Guid
48+
Parameter Sets: (All)
49+
Aliases:
50+
51+
Required: True
52+
Position: Named
53+
Default value: None
54+
Accept pipeline input: False
55+
Accept wildcard characters: False
56+
```
57+
58+
### CommonParameters
59+
60+
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).
61+
62+
## INPUTS
63+
64+
### None
65+
66+
## OUTPUTS
67+
68+
### System.Object
69+
70+
## NOTES
71+
72+
## RELATED LINKS
73+
74+
[Start-SPODataAccessGovernanceInsight](./Start-SPODataAccessGovernanceInsight.md)
75+
76+
[Get-SPODataAccessGovernanceInsight](./Get-SPODataAccessGovernanceInsight.md)
77+
78+
[Remove-SPODataAccessGovernanceInsight](./Remove-SPODataAccessGovernanceInsight.md)
79+
80+
[Start-SPOSiteReview](./Start-SPOSiteReview.md)
81+
82+
[Get-SPOSiteReview](./Get-SPOSiteReview.md)
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
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-spodataaccessgovernanceinsight
5+
applicable: SharePoint Online
6+
title: Get-SPODataAccessGovernanceInsight
7+
schema: 2.0.0
8+
author: pvrk
9+
ms.author: pullabhk
10+
manager:
11+
ms.reviewer:
12+
---
13+
14+
# Get-SPODataAccessGovernanceInsight
15+
16+
## SYNOPSIS
17+
18+
Lists various 'Data Access Governance' (DAG) reports in SharePoint admin center.
19+
20+
## SYNTAX
21+
22+
### GetAllReportsParameterSet
23+
```
24+
Get-SPODataAccessGovernanceInsight -ReportEntity <ReportEntityEnum> [-WorkLoad <WorkloadEnum>] [-ReportType <ReportTypeEnum>] [<CommonParameters>]
25+
```
26+
27+
### GetReportParameterSet
28+
```
29+
Get-SPODataAccessGovernanceInsight -ReportID <Guid> [<CommonParameters>]
30+
```
31+
32+
## DESCRIPTION
33+
34+
This cmdlet fetches details of various DAG reports available in SharePoint admin center.
35+
36+
## EXAMPLES
37+
38+
### Example 1
39+
40+
```powershell
41+
Get-SPODataAccessGovernanceInsight -ReportEntity EveryoneExceptExternalUsersForItems
42+
```
43+
44+
The above cmdlet fetches all DAG reports about 'Everyone except external users' attached to an item i.e., to a file, folder, or list in the last 28 days. The output consists of important parameters such as Status, ReportID, number of sites in the report and other user provided values during report generation.
45+
46+
## PARAMETERS
47+
48+
### -ReportEntity
49+
50+
Specifies the entity that could cause oversharing and hence tracked by these reports.
51+
52+
```yaml
53+
Type: ReportEntityEnum
54+
Parameter Sets: GetAllReportsParameterSet
55+
Aliases:
56+
Accepted values: SharingLinks_Anyone, SharingLinks_PeopleInYourOrg, SharingLinks_Guests, SensitivityLabelForFiles, EveryoneExceptExternalUsersAtSite, EveryoneExceptExternalUsersForItems, PermissionedUsers
57+
58+
Required: True
59+
Position: Named
60+
Default value: None
61+
Accept pipeline input: False
62+
Accept wildcard characters: False
63+
```
64+
65+
### -ReportID
66+
67+
Specifies the ID of the particular report to be fetched.
68+
69+
```yaml
70+
Type: Guid
71+
Parameter Sets: GetReportParameterSet
72+
Aliases:
73+
74+
Required: True
75+
Position: Named
76+
Default value: None
77+
Accept pipeline input: False
78+
Accept wildcard characters: False
79+
```
80+
81+
### -ReportType
82+
83+
Specifies the time period of data of the reports to be fetched. A 'Snapshot' report will have the latest data as of the report generation time. A 'RecentActivity' report will be based on data in the last 28 days.
84+
85+
```yaml
86+
Type: ReportTypeEnum
87+
Parameter Sets: GetAllReportsParameterSet
88+
Aliases:
89+
Accepted values: Snapshot, RecentActivity
90+
91+
Required: False
92+
Position: Named
93+
Default value: None
94+
Accept pipeline input: False
95+
Accept wildcard characters: False
96+
```
97+
98+
### -WorkLoad
99+
100+
Specifies the datasource of the reports to be fetched i.e., reports for SharePoint sites or for OneDrive accounts.
101+
102+
```yaml
103+
Type: WorkloadEnum
104+
Parameter Sets: GetAllReportsParameterSet
105+
Aliases:
106+
Accepted values: SharePoint, OneDriveForBusiness
107+
108+
Required: False
109+
Position: Named
110+
Default value: None
111+
Accept pipeline input: False
112+
Accept wildcard characters: False
113+
```
114+
115+
### CommonParameters
116+
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).
117+
118+
## INPUTS
119+
120+
### None
121+
122+
## OUTPUTS
123+
124+
### System.Object
125+
126+
## NOTES
127+
128+
## RELATED LINKS
129+
130+
[Start-SPODataAccessGovernanceInsight](./Start-SPODataAccessGovernanceInsight.md)
131+
132+
[Export-SPODataAccessGovernanceInsight](./Export-SPODataAccessGovernanceInsight.md)
133+
134+
[Remove-SPODataAccessGovernanceInsight](./Remove-SPODataAccessGovernanceInsight.md)
135+
136+
[Start-SPOSiteReview](./Start-SPOSiteReview.md)
137+
138+
[Get-SPOSiteReview](./Get-SPOSiteReview.md)

0 commit comments

Comments
 (0)