05/19/2023 11:31 AM - last edited on 05/19/2023 12:21 PM by Dave
Hi,
I am trying to add / remove owners from Azure security group using below Json but it is erroring out
{
"connection": "userAuth",
"url": "https://graph.microsoft.com/v1.0/groups/${entitlementValue.entitlementID}",
"httpMethod": "PATCH",
"httpParams": "${(customproperty16=='office365')?'{\"description\": \"+roles.description\", \"displayName\": \"+roles.displayname\", \"groupTypes\": [\"Unified\"], \"mailEnabled\": true, \"mailNickname\": \"+roles.displayname\", \"securityEnabled\": false,\"owners@odata.bind\": [\"+allOwner\"]}': '{\"description\": \"+roles.description\", \"displayName\": \"+roles.displayname\", \"groupTypes\": [], \"mailEnabled\": false, \"mailNickname\": \"+roles.displayname\", \"securityEnabled\": true,\"owners@odata.bind\": [\"+allOwner\"]}'}",
"httpHeaders": {
"Authorization": "${access_token}",
"Content-Type": "application/json"
},
"httpContentType": "application/json"
}
Error logs
05/23/2023 02:44 AM
Hello @hirenp
We are currently investigating your inquiry internally. We will provide you with updates as soon as we have more information.
In the meantime, could you please provide the following details:
1. Has this JSON configuration worked successfully in the past?
2. Have there been any recent upgrades or changes to the system?
3. Is this the first time you are attempting to update the owner using JSON?
Thank you,
05/23/2023 07:38 AM
1. The configuration provided in the documentation did not work for me.
2. We are currently on 23.4 version
3. Yes this is the new integration
05/23/2023 10:33 PM
Hello @hirenp,
Could you please try the below Json and let me know if it works,
{
"connection": "userAuth",
"url": "https://graph.microsoft.com/v1.0/groups/${entitlementValue.entitlementID}",
"httpMethod": "PATCH",
"httpParams": "{\"description\": \"${roles.description==null || roles.description==''? roles.displayname : roles.description}\", \"displayName\": \"${roles.displayname==null || roles.displayname==''? roles.role_name : roles.displayname}\", \"groupTypes\": [\"${roles.customproperty21=='Office365'? 'Unified' : ''}\"], \"mailEnabled\": \"${roles.customproperty22 == '1' ? true : false}\", \"mailNickname\": \"${roles.displayname==null || roles.displayname==''? roles.role_name : roles.displayname}\", \"securityEnabled\": \"${roles.customproperty23 == '1' ? true : false}\",\"owners@odata.bind\": [\"${allOwner}\"]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Content-Type": "application/json"
},
"httpContentType": "application/json"
}
Thanks,