Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/04/2024 04:04 AM
Hi All,
We have configured AZURE AD for provisioning using OOTB AZURE AD connector.
The AddAccess Task is working fine but the RemoveAccess task is getting failed with the below error.
{"code":"Request_BadRequest","message":"Uri is invalid for a DELETE operation. The URI must refer to an entity.","innerError":{"date":"2024-07-04T10:06:53","request-id":"fd4b8ab2-e8d9-4ae9-84e5-a61e4b8ab8c1","client-request-id":"fd4b8ab2-e8d9-4ae9-84e5-a61e4b8ab8c1"}}},"statusCode":405,"description":null,"status":"Failed"}}
Below is REMOVEACCESSJSON we are using in the connection.
{
"call": [
{
"name": "AADGroup",
"connection": "${connectionName}",
"url": https://graph.microsoft.com/v1.0/groups/${entitlementValue.entitlementID}/members/${account.accountI...\$ref,
"httpMethod": "DELETE",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
204,
205
]
}
}
]
}
Please let us know if there is something missing in the configiguration
Solved! Go to Solution.
07/04/2024 04:18 AM - edited 07/04/2024 04:31 AM
@Dharm seems to be URL used the REMOVEACCESSJSON is incorrect. Check near $ref
"url": "https://graph.microsoft.com/v1.0/groups/${entitlementValue.entitlementID}/members/${account.accountID}/\\$ref",
https://forums.saviynt.com/t5/identity-governance/azuread-remove-access-null-response/m-p/37116
07/04/2024 04:57 AM
Thanks it was syntax error
07/04/2024 05:56 AM
@Dharm Is issue resolved?
If not is this working from postman ?
and share the error logs
07/04/2024 07:24 AM
Yes it is working
07/04/2024 04:20 AM
@Dharm is it working from postman?
07/04/2024 07:23 AM
Use below working json
{
"call": [
{
"name": "AADGroup",
"connection": "${connectionName}",
"url": entitlementID}/members/${account.accountID}/\\$ref",
"httpMethod": "DELETE",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
204,
205
]
}
}
]
}