06/30/2023 09:04 AM
Hi Team,
Trying to remove access for a REST based application, from postman access removal is successful,but from Saviynt, i am not getting any response back from the target.
Using graph APIs for connecting to Microsoft Intune (MAM), below is the remove access JSON the we're using:
{
"call": [{
"name": "call1",
"callOrder": 0,
"connection": "userAuth",
"url": "https://graph.microsoft.com/v1.0/users/${account.accountID}/wipeManagedAppRegistrationsByDeviceTag",
"httpParams": "{\"deviceTag\":\"${entitlementValue.customproperty1}\"}",
"httpMethod": "POST",
"httpContentType": "application/json",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json",
"successResponses": {
"statusCode": [204, 200]
},
"unsuccessResponses": {
"statusCode": [403, 404]
}
}
}]
}
API reference Link: https://learn.microsoft.com/en-us/graph/api/intune-mam-user-wipemanagedappregistrationsbydevicetag?v....
Btw in postman getting response code 200 instead of 204 as per Graph API.
Regards,
Rakesh
Solved! Go to Solution.
07/02/2023 09:42 PM
JSON seems to be fine.
07/02/2023 09:57 PM
Hi @rakesh ,
In the below JSON, try replacing <entTypeName> with the entitlement type name of the entitlement.
{
"call": [
{
"name": "<entTypeName>",
"callOrder": 0,
"connection": "userAuth",
"url": "https://graph.microsoft.com/v1.0/users/${account.accountID}/wipeManagedAppRegistrationsByDeviceTag",
"httpParams": "{\"deviceTag\":\"${entitlementValue.customproperty1}\"}",
"httpMethod": "POST",
"httpContentType": "application/json",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json",
"successResponses": {
"statusCode": [
204,
200
]
},
"unsuccessResponses": {
"statusCode": [
403,
404
]
}
}
}
]
}
07/03/2023 01:35 AM
Thanks Naveen. Your suggestion worked!!!