and more in a single search tool across platforms. Read the announcement here. |
12/01/2023 08:41 AM
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?
12/01/2023 11:42 AM
"httpMethod": "PUT",
"httpParams": "{\"accountEnabled\": \"false\"}",
12/02/2023 08:44 PM
{
"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
]
}
}]
}