Skip to content

Commit 528ad73

Browse files
committed
Adding Approve-SPOTenantServicePrinciplaPermissionsGrant cmdlet and removing preview stamps on the SPFx related cmdlets
1 parent 4336ec2 commit 528ad73

8 files changed

+86
-20
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
external help file:
3+
applicable: SharePoint Online
4+
schema: 2.0.0
5+
---
6+
7+
# Approve-SPOTenantServicePrincipalPermissionGrant
8+
9+
## SYNOPSIS
10+
11+
Approves a permission request for the current tenant's "SharePoint Online Client" service principal.
12+
13+
14+
## SYNTAX
15+
16+
### Default
17+
18+
```powershell
19+
Approve-SPOTenantServicePrincipalPermissionGrant -Resource <string> -Resource <string>
20+
```
21+
22+
## DESCRIPTION
23+
24+
Adds a permission for the current tenant's "SharePoint Online Client" service principal. Can be used to add needed permissions to the service principal without specifically requesting them in the SharePoint Framework solution file (sppkg).
25+
26+
## EXAMPLES
27+
28+
### ------------------EXAMPLE 1------------------
29+
30+
```powershell
31+
Approve-SPOTenantServicePrincipalPermissionGrant -Resource "Microsoft Graph" -Scope "Mail.Read"
32+
```
33+
34+
Adds a permission scope for the 'Microsoft Graph' resource with scope claim 'Mail.Read'.
35+
36+
## PARAMETERS
37+
38+
### -Resource
39+
40+
Resource of the permission request to add.
41+
42+
```yaml
43+
Type: String
44+
Parameter Sets: (All)
45+
Aliases:
46+
Applicable: SharePoint Online
47+
48+
Required: True
49+
Position: Named
50+
Default value: None
51+
Accept pipeline input: False
52+
Accept wildcard characters: False
53+
```
54+
55+
### -Scope
56+
57+
Scope of the permission request to add.
58+
59+
```yaml
60+
Type: String
61+
Parameter Sets: (All)
62+
Aliases:
63+
Applicable: SharePoint Online
64+
65+
Required: True
66+
Position: Named
67+
Default value: None
68+
Accept pipeline input: False
69+
Accept wildcard characters: False
70+
```

sharepoint/sharepoint-ps/sharepoint-online/Approve-SPOTenantServicePrincipalPermissionRequest.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ schema: 2.0.0
77
# Approve-SPOTenantServicePrincipalPermissionRequest
88

99
## SYNOPSIS
10-
Approves a permission request for the current tenant's "SharePoint Online Client" service principal
11-
12-
> **Note** - This is a preview feature and should not be used in production.
1310

11+
Approves a permission request for the current tenant's "SharePoint Online Client" service principal
1412

1513
## SYNTAX
1614

1715
### Default
16+
1817
```powershell
1918
Approve-SPOTenantServicePrincipalPermissionRequest -RequestId <Guid>
2019
```
2120

2221
## DESCRIPTION
22+
2323
Approves a permission request for the current tenant's "SharePoint Online Client" service principal
2424

2525
The return value of a successful call is a permission grant object. See [the "Permission grant object" section of the
@@ -34,6 +34,7 @@ Approving a permission request also removes that request from the list of permis
3434
## EXAMPLES
3535

3636
### ------------------EXAMPLE 1------------------
37+
3738
```powershell
3839
$requests = Get-SPOTenantServicePrincipalPermissionRequests
3940
$requestToApprove = $requests | ? { $_.Resource -eq 'Office 365 SharePoint Online' -and $_.Scope -eq 'MyFiles.Read' } | Select-Object -First 1
@@ -50,6 +51,7 @@ If there is no request with those properties, then no approve action will be tak
5051
## PARAMETERS
5152

5253
### -RequestId
54+
5355
The ID of the permission request to approve
5456

5557
```yaml

sharepoint/sharepoint-ps/sharepoint-online/Deny-SPOTenantServicePrincipalPermissionRequest.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ schema: 2.0.0
77
# Deny-SPOTenantServicePrincipalPermissionRequest
88

99
## SYNOPSIS
10-
Denies a permission request for the current tenant's "SharePoint Online Client" service principal
11-
12-
> **Note** - This is a preview feature and should not be used in production.
1310

11+
Denies a permission request for the current tenant's "SharePoint Online Client" service principal
1412

1513
## SYNTAX
1614

sharepoint/sharepoint-ps/sharepoint-online/Disable-SPOTenantServicePrincipal.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ schema: 2.0.0
77
# Disable-SPOTenantServicePrincipal
88

99
## SYNOPSIS
10-
Disables the current tenant's "SharePoint Online Client" service principal.
1110

12-
> **Note** - This is a preview feature and should not be used in production.
11+
Disables the current tenant's "SharePoint Online Client" service principal.
1312

1413
## SYNTAX
1514

sharepoint/sharepoint-ps/sharepoint-online/Enable-SPOTenantServicePrincipal.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ schema: 2.0.0
77
# Enable-SPOTenantServicePrincipal
88

99
## SYNOPSIS
10-
Enables the current tenant's "SharePoint Online Client" service principal.
1110

12-
> [!NOTE]
13-
> This is a preview feature and should not be used in production.
11+
Enables the current tenant's "SharePoint Online Client" service principal.
1412

1513
## SYNTAX
1614

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOTenantServicePrincipalPermissionGrants.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ schema: 2.0.0
77
# Get-SPOTenantServicePrincipalPermissionGrants
88

99
## SYNOPSIS
10-
Gets the collection of permission grants for the "SharePoint Online Client" service principal
1110

12-
> [!NOTE]
13-
> This is a preview feature and should not be used in production.
11+
Gets the collection of permission grants for the "SharePoint Online Client" service principal
1412

1513
## SYNTAX
1614

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOTenantServicePrincipalPermissionRequests.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ schema: 2.0.0
77
# Get-SPOTenantServicePrincipalPermissionRequests
88

99
## SYNOPSIS
10-
Gets the collection of permission requests for the "SharePoint Online Client" service principal
1110

12-
> [!NOTE]
13-
> This is a preview feature and should not be used in production.
11+
Gets the collection of permission requests for the "SharePoint Online Client" service principal
1412

1513
## SYNTAX
1614

1715
### Default
16+
1817
```powershell
1918
Get-SPOTenantServicePrincipalPermissionRequests
2019
```

sharepoint/sharepoint-ps/sharepoint-online/Revoke-SPOTenantServicePrincipalPermission.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ schema: 2.0.0
66
# Revoke-SPOTenantServicePrincipalPermission
77

88
## SYNOPSIS
9-
Revokes a permission that was previously granted to the "SharePoint Online Client" service principal
109

11-
> [!NOTE]
12-
> This is a preview feature and should not be used in production.
10+
Revokes a permission that was previously granted to the "SharePoint Online Client" service principal
1311

1412
## SYNTAX
1513

1614
### Default
15+
1716
```powershell
1817
Revoke-SPOTenantServicePrincipalPermission -ObjectId <String>
1918
```
2019

2120
## DESCRIPTION
21+
2222
Revokes a permission that was previously granted to the "SharePoint Online Client" service principal.
2323

2424
## EXAMPLES
2525

2626
### ------------------EXAMPLE 1------------------
27+
2728
```powershell
2829
$grants = Get-SPOTenantServicePrincipalPermissionGrants
2930
$grantToRemove = $grants | ? { $_.Resource -eq 'Office 365 SharePoint Online' -and $_.Scope -eq 'MyFiles.Read' } | Select-Object -First 1
@@ -40,6 +41,7 @@ If there is no permission with those properties, then no revoke action will be t
4041
## PARAMETERS
4142

4243
### -ObjectId
44+
4345
The Object ID of the permission grant to revoke
4446

4547
```yaml

0 commit comments

Comments
 (0)