Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/29/2024 03:07 AM
08/29/2024 03:18 AM
08/29/2024 03:57 AM
There is no such error in logs.
08/29/2024 05:20 AM - edited 08/29/2024 05:21 AM
Hi @Prajna ,
use this in config JSON , this will show the request Saviynt making and response from Azure
{
"showLogs": true
}
Have you tried same in postman and see the status code. 201 is mostly when we create object, so that you don't need in successResponses in JSON for sure. Check what status graph API gives on deletion and use that in your JSON
Thanks,
Amit
08/29/2024 05:25 AM - edited 08/29/2024 05:26 AM
If you are using Azure AD connector then use below JSON
{
"call": [
{
"name": "call1",
"connection": "${connectionName}",
"url": "https://graph.microsoft.com/v1.0/users/${account.accountID}",
"httpMethod": "DELETE",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
204,
205
]
}
}
]
}
If you are using REST Connector use below JSON
{
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": "https://graph.microsoft.com/v1.0/users/${account.accountID}",
"httpMethod": "DELETE",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
204,
205
]
}
}
]
}
Connection name will be ${connectionName} in Azure and in REST actual connection name needs to be mentioned
08/29/2024 11:28 PM
The rest connection is used for deprovisioning account. Now I have used the exact connection name. Please find the below json. Still getting the same issue.
{ "call": [ { "name": "call1", "connection": "AAD", "url": "https://graph.microsoft.com/v1.0/users/${account.accountID}", "httpMethod": "DELETE", "httpHeaders": { "Authorization": "${access_token}" }, "httpContentType": "application/json", "successResponses": { "statusCode": [ 200, 201, 204, 205 ] } } ] }
08/30/2024 12:55 AM
Hi @Prajna , if you are using REST connector then dont use "connection": "AAD" or ${connectionName}
{
"call": [
{
"name": "RemoveAccount",
"connection": "userAuth",
This accntAuth comes from connection JSON, see below, you need to use same -
"authentications": {
"userAuth": {
"authType": "oauth2",
08/30/2024 08:13 AM
08/30/2024 10:42 PM
@Prajna , if you are using Rest, try the JSON below.
Can you share the Connection JSON here?
08/29/2024 05:37 AM - edited 08/29/2024 05:37 AM
Hi @Prajna define the same connection name value via which you established connection in connection json.