Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/20/2024 04:57 AM
Hi ,
We are going to integrate SharePoint with Saviynt using o365 connector as a prerequisite as per Creating an Integration (saviyntcloud.com) we need to Register an Application in Azure AD.
We were following Registering an Application in Azure AD (saviyntcloud.com) and raised ticket for client Azure team to register the app in Azure AD but they need more clarity on permissions to approve the request.
What permissions are required on SharePoint and directory. They are ok to give read and write to SharePoint not on directory.
Solved! Go to Solution.
08/20/2024 05:11 AM
08/20/2024 05:13 AM - edited 08/20/2024 05:16 AM
hi @rushikeshvartak Are the following permissions for SharePoint or the directory? Our use cases involve reconciliation and the removal and updating of SharePoint access through Saviynt
08/20/2024 05:25 AM
Directory.Read.All:
Directory.ReadWrite.All:
08/20/2024 07:14 AM
Hi @rushikeshvartak For instance, if we remove access from SharePoint, Directory.ReadWrite.All ensures that the access is also removed from Azure AD if both are in sync
08/20/2024 09:45 AM
Then you can skip the access.
08/20/2024 11:59 PM - edited 08/21/2024 12:00 AM
hi @rushikeshvartak Thank you for your response, but I’m still unclear on something. If the customer does not want to grant Directory.ReadWrite.All and RoleManagement.ReadWrite.Directory permissions, will the removal of access in SharePoint still work using the below removeaccess JSON? We are using SharePoint Online, and our use case involves removing access from SharePoint when a user is terminated or when access is removed from another connected application.
{
"call": [
{
"name": "SharePoint Group",
"connection": "SPAuth",
"url": "${entitlementValue.entitlement_value.split(' \\\\|')[1].trim()}/_api/web/sitegroups(${entitlementValue.entitlementID.split(' \\\\|')[2].trim()})/users/removebyloginname('i%3A0%23.f%7Cmembership%7C${user.email}')",
"httpMethod": "PATCH",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json" },
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
204
]
},
"unsuccessResponses": {
"odata~dot#error_description": [
"Invalid issuer or signature.",
"Request_BadRequest",
"Authentication_MissingOrMalformed",
"Request_ResourceNotFound" ]
}
},
{
"name": "SharePoint Site",
"connection": "SPAuth",
"callOrder": 0,
"stageNumber": 0,
"httpHeaders": {
"Authorization": "${sessionId}",
"Accept": "application/json" },
"url": "${entitlementValue.description}/_api/Web/ensureuser",
"httpParams": "{\"logonName\":\"${user.email}\"}",
"httpContentType": "application/json",
"httpMethod": "POST" },
{
"name": "SharePoint List",
"connection": "SPAuth",
"callOrder": 0,
"stageNumber": 0,
"httpHeaders": {
"Authorization": "${sessionId}",
"Accept": "application/json" },
"url": "${entitlementValue.customproperty20}/_api/Web/ensureuser",
"httpParams": "{\"logonName\":\"${user.email}\"}",
"httpContentType": "application/json",
"httpMethod": "POST" }
]
}
08/21/2024 06:29 AM
If you do not grant Directory.ReadWrite.All and RoleManagement.ReadWrite.Directory but ensure your application has the appropriate SharePoint Online permissions (Sites.Manage.All, Sites.FullControl.All, or similar), the removeaccess JSON should still work as intended for removing user access from SharePoint.
Permissions Required:
SharePoint Online Permissions: