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

remove access task are getting failed for AZURE AD OOTB connector

Dharm
Regular Contributor
Regular Contributor

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

6 REPLIES 6

SumathiSomala
All-Star
All-Star

@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://docs.saviyntcloud.com/bundle/AzureAD-v24x/page/Content/Configuring-the-Integration-for-Provi...

 

https://forums.saviynt.com/t5/identity-governance/azuread-remove-access-null-response/m-p/37116

 

Regards,
Sumathi Somala

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

Dharm
Regular Contributor
Regular Contributor

Thanks it was syntax error

@Dharm Is issue resolved?

If not is this working from postman ?

and share the error logs

 

Regards,
Sumathi Somala

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

Dharm
Regular Contributor
Regular Contributor

Yes it is working 

naveenss
All-Star
All-Star

@Dharm is it working from postman?

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

rushikeshvartak
All-Star
All-Star

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


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