Skip to content

Commit 97cc41b

Browse files
committed
address comments on Get-SPOApplication and Set-SPOApplicationPermission
1 parent 146f547 commit 97cc41b

File tree

2 files changed

+22
-24
lines changed

2 files changed

+22
-24
lines changed

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Get-SPOApplication [[-OwningApplicationId] <OwningApplicationid>] [[-Application
3232

3333
## DESCRIPTION
3434

35-
The `Get-SPOApplication` cmdlet retrieves and returns all third-party SharePoint Embedded applications registered in a tenant that match the given criteria. You must be a SharePoint Online Administrator or Global Administrator to run the cmdlet. For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps).
35+
The `Get-SPOApplication` cmdlet retrieves and returns SharePoint Embedded applications of all publishers registered in a tenant that match the given criteria. You must be a SharePoint Online Administrator or Global Administrator to run the cmdlet. For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps).
3636

3737
## EXAMPLES
3838

@@ -50,19 +50,16 @@ Example 1 returns all SharePoint Embedded applications registered in the specifi
5050
Get-SPOApplication -OwningApplicationId <OwningApplicationId>
5151
```
5252

53-
Example 2 lists the details of the owning application corresponding to the `OwningApplicationId` registered in the specified tenant.
53+
Example 2 lists the details of the owning application corresponding to the `OwningApplicationId` registered in the specified tenant. This returns `Applications` which specifies the list of guest applications IDs with current access permissions to the owning application, `SharingCapability` settings, and `OverrideTenantSharingCapability` status.
5454

55-
TODO: add portion about viewing active 1P app Ids in this cmdlet
5655

5756
### Example 3
5857

5958
```powershell
6059
Get-SPOApplication -OwningApplicationId <OwningApplicationId> -ApplicationId <ApplicationId>
6160
```
6261

63-
Example 3 enumerates permissions of the owning applications registered in the specified tenant.
64-
65-
TODO: Add portion about viewing guest app permissions in this cmdlet (1P guest app perms)
62+
Example 3 list details of the guest application specified in `ApplicationId`. This inclues the list of guest application access permissions. Note that only app-only permissions are supported.
6663

6764
## PARAMETERS
6865

@@ -76,9 +73,11 @@ The following details are returned:
7673

7774
- OwningApplicationName
7875

79-
- Storage
80-
8176
- Applications (by id)
77+
78+
- SharingCapability
79+
80+
- OverrideTenantSharingCapability
8281

8382
```yaml
8483
Type: String
@@ -95,7 +94,7 @@ Accept wildcard characters: False
9594
9695
### -ApplicationId
9796
98-
Use this parameter to enumerate permissions of the owning applications registered in the specified tenant.
97+
Use this parameter to enumerate app-only permissions of the guest application id with access to the specified owning application.
9998
10099
```yaml
101100
Type: String
@@ -118,4 +117,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
118117
## RELATED LINKS
119118
120119
[Get-SPOContainer](./Get-SPOContainer.md)
121-
[Set-SPOApplication] (Set-SPOApplication.md)
120+
[Set-SPOApplication](./Set-SPOApplication.md)

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOApplicationPermission.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.reviewer:
1414

1515
## SYNOPSIS
1616

17-
Adds permissions for a guest application to access a SharePoint Embedded application.
17+
Manages permissions for a guest application to access a SharePoint Embedded application.
1818

1919
## SYNTAX
2020

@@ -31,37 +31,36 @@ Set-SPOApplicationPermission
3131

3232
## DESCRIPTION
3333

34-
The `Set-SPOApplicationPermission` cmdlet adds a guest app permission to a SharePoint Embedded application. Currently only app-only permissions are supported at this time. Delegated permissions are not support for guest applications. A guest application is defined as any application within the enterprise applications of the owning tenant.
34+
The `Set-SPOApplicationPermission` cmdlet manages permissions for a guest app's access to a SharePoint Embedded application. This includes adding, updating, and deleting guest app permissions. Currently only app-only permissions are supported at this time. Delegated permissions are not supported for guest applications. A guest application is defined as any application within the enterprise applications of the owning tenant.
3535

36-
You must be a SharePoint Online Administrator or Global Administrator to run this cmdlet. For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps).
36+
You must be a SharePoint Online Administrator to run this cmdlet. For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps).
3737

3838
## EXAMPLES
3939

4040
### Example 1
4141

4242
```powershell
43-
Set-SPOApplicationPermission
44-
-OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996
45-
-ApplicationId 12345678-1234-1234-abcd-abcdefghijkl
46-
-PermissionAppOnly Read, Write, Delete
43+
Set-SPOApplicationPermission -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996 -ApplicationId 12345678-1234-1234-abcd-abcdefghijkl -PermissionAppOnly Read
4744
```
4845

4946

50-
Example 1 gives the Guest App with ID `12345678-1234-1234-abcd-abcdefghijkl` app-only Read, Write, and Delete permissions to access the Owning Application Microsoft Loop of ID `a187e399-0c36-4b98-8f04-1edc167a0996`.
47+
Example 1 gives the guest app with ID `12345678-1234-1234-abcd-abcdefghijkl` app-only Read permissions to access the owning application Microsoft Loop of ID `a187e399-0c36-4b98-8f04-1edc167a0996`.
5148

5249
### Example 2
5350

5451
```powershell
55-
Set-SPOApplicationPermission
56-
-OwningApplicationId 5e2795e3-ce8c-4cfb-b302-35fe5cd01597
57-
-ApplicationId 12345678-1234-1234-abcd-abcdefghijkl>
58-
-PermissionAppOnly ReadContent, WriteContent
59-
-PermissionDelegated None
52+
Set-SPOApplicationPermission -OwningApplicationId 5e2795e3-ce8c-4cfb-b302-35fe5cd01597 -ApplicationId 12345678-1234-1234-abcd-abcdefghijkl -PermissionAppOnly ReadContent -PermissionDelegated None
6053
```
6154

62-
Example 2 gives the Guest App with ID `12345678-1234-1234-abcd-abcdefghijkl` app-only Read, Write, and Delete permissions to access the Owning Application Microsoft Designer of ID `a187e399-0c36-4b98-8f04-1edc167a0996`. Notice that delegated permissions are not supported at this time and are default set to `None`.
55+
Example 2 gives the guest app with ID `12345678-1234-1234-abcd-abcdefghijkl` app-only ReadContent permissions to access the owning application Microsoft Designer of ID `a187e399-0c36-4b98-8f04-1edc167a0996`. Notice that delegated permissions are not supported at this time and are default set to `None`.
6356

57+
### Example 3
6458

59+
```powershell
60+
Set-SPOApplicationPermission -OwningApplicationId 5e2795e3-ce8c-4cfb-b302-35fe5cd01597 -ApplicationId 12345678-1234-1234-abcd-abcdefghijkl -PermissionAppOnly None -PermissionDelegated None
61+
```
62+
63+
Example 3 sets guest application permissions to None for the guest app with ID `12345678-1234-1234-abcd-abcdefghijkl`. This has deleted previous permissions for that guest app to access owning application of `a187e399-0c36-4b98-8f04-1edc167a0996`. Notice that delegated permissions are not supported at this time and are default set to `None`.
6564

6665
## PARAMETERS
6766

0 commit comments

Comments
 (0)