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

How do we disable Azure Ad Account via UserUpdateRule

GitaGupta
New Contributor II
New Contributor II
2 REPLIES 2

NM
Honored Contributor III
Honored Contributor III

@GitaGupta choose action disable account as action and select the endpoint.


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

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
			]
		}
	}]
}

Use above JSON in Azure AD Connector. and you can trigger as below

rushikeshvartak_0-1729690315212.png

 


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