Updating the Attribute Mapping Configurations for a Specific Instance

Technical Articles

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US
Google Secure LDAP

The following code sample demonstrates how to update the attribute mappings configuration using the ID of the instance:

curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: YOUR_BEARER_TOKEN -d '{
  "userMappings": {
    "objectClassLimitation": "ANY_OBJECT_CLASSES",
    "objectClasses": "inetOrgPerson",
    "searchBase": "ou=Users",
    "searchScope": "FIRST_LEVEL_ONLY",
...
  ]
}' 'https://YOUR_JAMF_PRO_URL/api/v2/cloud-ldaps/ID/mappings'
Note:

The full JSON configuration is not included in the sample for clarity.

Microsoft Entra ID
The following code sample demonstrates how to update the attribute mapping configurations using the identifier (ID) of the instance:
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: YOUR_BEARER_TOKEN -d '{
  "cloudIdPCommon": {
    ...
  },
  "server": {
    "id": "1",
    "tenantId": "899878d0-7f02-4ncb-9ao1-37d3dce0f0dz",
    "enabled": true,
    "mappings": {
      "userId": "id",
      "userName": "userPrincipalName",
      "realName": "displayName",
      "email": "mail",
      "department": "department",
      "building": "",
      "room": "",
      "phone": "mobilePhone",
      "position": "employeeType",
      "groupId": "id",
      "groupName": "displayName"
    },
...
  }
}' 'https://YOUR_JAMF_PRO_URL/api/v1/cloud-azure/ID'
Note:

The full JSON configuration is not included in the sample for clarity.