You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/embedded/development/auth.md
+16-6Lines changed: 16 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: SharePoint Embedded Authentication and Authorization
3
3
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
5
5
ms.localizationpriority: high
6
6
---
7
7
@@ -11,13 +11,13 @@ To use SharePoint Embedded, your application needs to use Microsoft Graph. Learn
11
11
12
12
## Overview
13
13
14
-
Here are some key principles with SharePoint Embedded authentication and authorization:
14
+
Here are some key principles of SharePoint Embedded authentication and authorization:
15
15
16
16
- Applications interact with SharePoint Embedded via Microsoft Graph.
17
17
- Applications need container type application permissions to access containers of that container type.
18
18
- When using access on behalf of a user, applications can only access containers that the user is a member of.
19
19
- 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
21
21
22
22
## Pre-Requisites
23
23
@@ -74,7 +74,7 @@ To [register a container type](../getting-started/register-api-documentation.md)
74
74
| Container.Selected | 19766c1b-905b-43af-8756-06526ab42875 | Application | In the context of SharePoint Embedded, enables container type registration on a consuming tenant. |
75
75
76
76
> [!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.
78
78
79
79
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.
80
80
@@ -110,7 +110,7 @@ SharePoint Embedded applications need to be granted container type application p
110
110
| Full | Has all permissions for containers of this container type. |
111
111
112
112
> [!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.
114
114
115
115
### Container permissions
116
116
@@ -131,11 +131,21 @@ Any user accessing a container must be a member of the container. Membership to
131
131
Here are some actions you can take next:
132
132
133
133
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
+
134
135
- Microsoft Graph (resourceAppId: `00000003-0000-0000-c000-000000000000`)
135
136
-`FileStorageContainer.Selected` (type: `Scope`, ID: `085ca537-6565-41c2-aca7-db852babc212`) to access containers on consuming tenants
-`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:
0 commit comments