Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/24/2024 12:32 AM
Are the url and method mentioned in the integration document (Creating an Integration) for the SharePoint Site and SharePoint List in the 'Remove Access JSON' correct? They are the same as in the 'AddAccessJSON'.
Remove Access JSON
{
"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": "O365-ADGroup",
"connection": "userAuth",
"url": "https://graph.microsoft.com/v1.0/groups/${entitlementValue.entitlementID}/members/${account.accountI...\$ref",
"httpMethod": "DELETE",
"httpHeaders": {
"Authorization": "${access_token}" },
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
204,
205
]
},
"unsuccessResponses": {
"odata~dot#error.code": [
"Request_BadRequest",
"Authentication_MissingOrMalformed",
"Request_ResourceNotFound",
"Authorization_RequestDenied",
"Authentication_Unauthorized" ]
}
},
{
"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 Site",
"connection": "SPAuth",
"privilegeEntitlement": {
"privEntType": "O365-PermissionLevel",
"privAttrName": "Direct Permissions" },
"url": "${entitlementValue.description}/_api/web/roleassignments/removeroleassignment(principalid=${response.'SharePoint Site1'.message.Id},roleDefId=${privEntVal.entitlementID})",
"httpMethod": "POST",
"httpParams": "",
"httpHeaders": {
"Authorization": "${access_token}" },
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
},
"unsuccessResponses": {
"odata~dot#error_description": [
"Invalid issuer or signature.",
"Request_BadRequest",
"Authentication_MissingOrMalformed",
"Request_ResourceNotFound" ]
}
},
{
"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" },
{
"name": "SharePoint List",
"connection": "SPAuth",
"privilegeEntitlement": {
"privEntType": "O365-PermissionLevel",
"privAttrName": "Direct Permissions" },
"url": "${entitlementValue.customproperty20}/_api/web/lists(guid'${entitlementValue.entitlementID}')/roleassignments/removeroleassignment(principalid=${response.'SharePoint List1'.message.Id},roleDefId=${privEntVal.entitlementID})",
"httpMethod": "POST",
"httpParams": "",
"httpHeaders": {
"Authorization": "${access_token}" },
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
},
"unsuccessResponses": {
"odata~dot#error_description": [
"Invalid issuer or signature.",
"Request_BadRequest",
"Authentication_MissingOrMalformed",
"Request_ResourceNotFound" ]
}
}
]
}
10/24/2024 11:03 AM
Yes those are correct
10/24/2024 11:33 AM
@PinkyChau url could be same it doesn't matter mainly/most time it is the method -delete