Environment: Adaxes REST API, called from ServiceNow. Auth via
Adm-Authorization header with a service-account token (search + create work). Target: Entra distribution groups (adm-AzureGroupType = 2) in OU=Groups,DC=[domain],DC=onmicrosoft,DC=com.
What works: POST /api/directoryObjects creates the DL fine (resultType: 0) with cn, adm-AzureGroupType: 2, mailNickname, description.
Problem 1 — displayName at create fails: Adding a displayName property to that same create body returns: "resultType": 1, "message": "Illegal modify operation. Some aspect of the modification is not permitted." The object is created but the op reports failure. We've already granted the service account Write on Display Name via its Security Role, and it still fails.
Problem 2 — displayName via PATCH fails: PATCH /api/directoryObjects with: { "directoryObject": "CN=...,OU=Groups,DC=[domain],DC=onmicrosoft,DC=com", "properties": [{ "propertyName": "displayName",
"propertyType": "String", "values": ["Renamed"], "operation":
"Update" }] } returns HTTP 500 (Method failed: (/restApi/api/directoryObjects) with code: 500).
Questions:
- Correct way to set Display Name on a mail-enabled Entra distribution group via REST — at create or via PATCH? Is it Exchange-managed and not settable through the directory-modify path?
- Valid operationType values for the PATCH operation field, and is operation/mask required? A working PATCH example that sets displayName would be ideal.
- Same for setting owners (adm-ManagedByList) on a distribution group.
- What Adaxes Security Role permissions does the service account need to create a distribution group and set its Display Name, owners (adm-ManagedByList), and members specifically which permitted operations / property-write grants (and on which object types/scope)? We want to confirm this isn't a role permission gap before pursuing it as an API issue.