We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Unable to disable account for Azure AD

Aashish-Handa
Regular Contributor
Regular Contributor

Hi team,

We have setup a Rest connection for Azure AD provisioning and would like to disable accounts on the target. We are using the below disable account json:

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

However, when we try provisioning the tasks, it gets completed but the user isnt disabled on the target. Can we please some assistance here if we are missing any permissions here?

 

2 REPLIES 2

SumathiSomala
All-Star
All-Star

"httpMethod": "PUT",

"httpParams": "{\"accountEnabled\": \"false\"}",

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

rushikeshvartak
All-Star
All-Star
{
	"call": [{
		"name": "call1",
		"connection": "userAuth",
		"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
			]
		}
	}]
}

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.