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/solution-guidance/Bulk-user-profile-update-api-for-sharepoint-online.md
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Bulk update custom user profile properties for SharePoint Online
3
3
description: To replicate custom attributes to the SharePoint user profile service, use the UserProfile.BatchUpdate.API.
4
-
ms.date: 5/8/2018
4
+
ms.date: 4/3/2020
5
5
localization_priority: Priority
6
6
---
7
7
@@ -400,7 +400,18 @@ _DataFileNotJson - JsonToken EndObject is not valid for closing JsonType Array.
400
400
401
401
### Can I execute the code using app-only/add-in only permissions?
402
402
403
-
Yes, you need to register the client ID and secret to be able to execute the APIs. Because the actual import of the file does not occur synchronously with the identity of the caller, this works without any issues.
403
+
Yes, the actual import of the file does not occur synchronously with the identity of the caller, so this works with app-only context without any issues.
404
+
405
+
In order to use an app-only context with the SharePoint add-in model, you need to register a client ID and secret to be able to execute the APIs following [this guidance](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs). Moreover, while registering the SharePoint add-in you will have to grant the permissions using the following XML snippet:
In order to use app-only with an application registered in Azure Active Directory, you need to [register the application](https://docs.microsoft.com/en-us/graph/auth-register-app-v2), [provide a X.509 certificate for authentication](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-certificate-credentials#register-your-certificate-with-microsoft-identity-platform), which is a requirement for SharePoint Online app-only authentication within Azure Active Directory, and grant the following SharePoint Online permissions scopes for Application: Sites.FullControl.All and User.ReadWrite.All .
404
415
405
416
### This API is updating properties in the user profile service, but how would I create those properties in the tenant?
406
417
@@ -420,7 +431,7 @@ No, this is not currently supported with this API.
420
431
421
432
### What permissions are required for executing this API?
422
433
423
-
You must have Global Admin permissions currently. SharePoint Admin is not sufficient.
434
+
You must have Global Admin permissions currently, unless you use an app-only authentication context. SharePoint Admin is not sufficient.
0 commit comments