Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Disable Account not working for AzureAD Connector

SanjeetaRao
Regular Contributor
Regular Contributor

Hi,

We are trying to disable accounts in AzureAD using AzureAD type connector. The task is getting completed in Saviynt but accounts are not getting disabled in target. 

This is the json we are using:

{
"call": [
{
"name": "call1",
"connection": "${connectionName}",
"url": "https://graph.microsoft.com/v1.0/users/${account.accountID}",
"httpMethod": "PATCH",
"httpParams": "{\"accountEnabled\": false}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
204,
205
]
}
}
]
}

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

 

{
	"call": [{
		"name": "call1",
		"connection": "${connectionName}",
		"url": "https://graph.microsoft.com/v1.0/users/${account.accountID}",
		"httpMethod": "PATCH",
		"httpParams": "{\"accountEnabled\": false}",
		"httpHeaders": {
			"Authorization": "${access_token}"
		},
		"httpContentType": "application/json",
		"successResponses": {
			"statusCode": [
				200,
				201,
				204,
				205
			]
		}
	}]
}

Share logs in text format

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

SanjeetaRao
Regular Contributor
Regular Contributor

Hi @rushikeshvartak ,

It worked. Thanks!