Skip to content

Commit 97472a7

Browse files
Clarify instructions to grant admin consent for SPE application (SharePoint#10260)
* Clarify instructions to grant admin consent for SPE application * grammatical fixes, markdown formatting mods --------- Co-authored-by: Andrew Connell <[email protected]>
1 parent ccc92d5 commit 97472a7

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

docs/embedded/development/auth.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: SharePoint Embedded Authentication and Authorization
33
description: This article describes the authentication and authorization model for SharePoint Embedded applications.
4-
ms.date: 04/09/2025
4+
ms.date: 05/14/2025
55
ms.localizationpriority: high
66
---
77

@@ -11,13 +11,13 @@ To use SharePoint Embedded, your application needs to use Microsoft Graph. Learn
1111

1212
## Overview
1313

14-
Here are some key principles with SharePoint Embedded authentication and authorization:
14+
Here are some key principles of SharePoint Embedded authentication and authorization:
1515

1616
- Applications interact with SharePoint Embedded via Microsoft Graph.
1717
- Applications need container type application permissions to access containers of that container type.
1818
- When using access on behalf of a user, applications can only access containers that the user is a member of.
1919
- When using access without a user, applications can access containers enabled by the container type application permissions they have been granted.
20-
- Applications use access on behalf of users whenever possible to enhance security and audibility
20+
- Applications use access on behalf of users whenever possible to enhance security and accountability
2121

2222
## Pre-Requisites
2323

@@ -74,7 +74,7 @@ To [register a container type](../getting-started/register-api-documentation.md)
7474
| Container.Selected | 19766c1b-905b-43af-8756-06526ab42875 | Application | In the context of SharePoint Embedded, enables container type registration on a consuming tenant. |
7575

7676
> [!NOTE]
77-
> Container type management on owning tenants and registration on consuming tenants will become Microsoft Graph operations soon and this step will no longer be needed. Stay tuned.
77+
> Container type management on owning tenants and registration on consuming tenants will become Microsoft Graph operations soon, and this step will no longer be needed. Stay tuned.
7878
7979
To use the [SharePoint Embedded copilot](./declarative-agent/spe-da.md) experience (in the Preview stage) in your application, you will also need the `Container.Selected` permission on the `Office 365 SharePoint Online` resource. Please note that, as mentioned above, this permission is also required to register a container type today, which means that your application must have been granted consent to it interact with SharePoint Embedded in consuming tenants.
8080

@@ -110,7 +110,7 @@ SharePoint Embedded applications need to be granted container type application p
110110
| Full | Has all permissions for containers of this container type. |
111111

112112
> [!NOTE]
113-
> The combination of Microsoft Graph permissions and container type application permissions encompass the client authorization for applications.
113+
> The combination of Microsoft Graph permissions and container type application permissions encompasses the client authorization for applications.
114114
115115
### Container permissions
116116

@@ -131,11 +131,21 @@ Any user accessing a container must be a member of the container. Membership to
131131
Here are some actions you can take next:
132132

133133
1. Configure your SharePoint Embedded [application manifest](/entra/identity-platform/reference-app-manifest#requiredresourceaccess-attribute) (you may use [Entra PowerShell](/powershell/entra-powershell/manage-apps#assign-permissions-to-an-app) or the [Azure CLI](/cli/azure/ad/app/permission#az-ad-app-permission-add)) to request the required permissions:
134+
134135
- Microsoft Graph (resourceAppId: `00000003-0000-0000-c000-000000000000`)
135136
- `FileStorageContainer.Selected` (type: `Scope`, ID: `085ca537-6565-41c2-aca7-db852babc212`) to access containers on consuming tenants
136137
- Office 365 SharePoint Online (resourceAppId: `00000003-0000-0ff1-ce00-000000000000`)
137138
- `Container.Selected` (type: `Role`, ID: `19766c1b-905b-43af-8756-06526ab42875`) to register a container on consuming tenants
138-
1. [Grant admin consent](/entra/identity/enterprise-apps/grant-admin-consent?pivots=portal) to your application on both owning and consuming tenants (which can be the same tenant).
139+
140+
1. [Grant admin consent](/entra/identity-platform/v2-admin-consent) to your application on both owning and consuming tenants (which can be the same tenant).
141+
142+
> [!NOTE]
143+
> The `Container.Selected` application permission is hidden. This may cause issues with granting admin consent using the Enterprise apps pane in the Azure Portal. Instead, [construct the admin consent URL](/entra/identity-platform/v2-admin-consent#request-the-permissions-from-a-directory-admin) and provide it to your Entra directory administrator. For example:
144+
>
145+
> `https://login.microsoftonline.com/{tenant}/v2.0/adminconsent?client_id={client_id}`
146+
>
147+
> Make sure the Entra directory administrator [confirms a successful response](/entra/identity-platform/v2-admin-consent#successful-response).
148+
139149
1. [Create a new container type](../getting-started/containertypes.md) on the owning tenant.
140150
1. [Register a container type](../getting-started/register-api-documentation.md) on the consuming tenant.
141151
1. [Create a container](/graph/api/filestoragecontainer-post)

0 commit comments

Comments
 (0)