Apps documentation
Active Directory Attributes Sync
Active Directory Attributes Sync
Guides
FAQ
Release notes
Last updated Jul 20, 2017

REST API

This page provides REST API methods for Active Directory Attributes Sync app.

Active Directory Attributes Sync app exposes a REST API that provides two methods (GET and PUT) mapped to CRUD operations.

Info

For more information on using REST API in Jira, see official Atlassian documentation.

/rest/intenso/ad/1.0/public/connection

Request

Short description Syntax
Get all enabled connections GET /rest/intenso/ad/1.0/public/connection

Sample output

{
   "LDAP_server_23": 
       [
          "title",
          "telephoneNumber",
          "l",
          "company",
          "mobile",
          "streetAddress",
          "manager",
          "description",
          "department",
          "mail",
          "wWWHomePage"
        ]
}

Request

Short description Syntax
Get all fields for user for enable connection GET /rest/intenso/ad/1.0/public/connection/{idOrName}/user/{userKeyOrName}

Sample output

{
    "title": "Software developer",
    "telephoneNumber": "123 345 567",
    "l": "Wroclaw",
    "company": "InTENSO",
    "mobile": "234 456 778",
    "streetAddress": "Rondo",
    "physicalDeliveryOfficeName": "IT Office",
    "manager": "",
    "description": "",
    "department": "IT Department2",
    "mail": "user1@intenso.pl"
}

Request

Short description Syntax
Get value for field for user GET /rest/intenso/ad/1.0/public/connection/{idOrName}/user/{userKeyOrName}/field/{idFromAD}

Sample output

{
   "title": "Software developer"
}

/rest/intenso/ad/1.0/public/user

Request

Short description Syntax
Get all user’s values for all enabled connections GET /rest/intenso/ad/1.0/public/user/{userKeyOrName}

Sample output

{
  "LDAP_server_23": 
    {
      "title": "Software developer",
      "telephoneNumber": "123 345 567",
      "l": "Wroclaw",
      "company": "InTENSO",
      "mobile": "234 456 778",
      "streetAddress": "Rondo",
      "physicalDeliveryOfficeName": "IT Office",
      "manager": "",
      "description": "",
      "department": "IT Department2",
      "mail": "user1@intenso.pl"
    }
}

/rest/intenso/ad/1.0/public/update

Request

Short description Syntax
Update user’s data or connection details PUT /rest/intenso/ad/1.0/public/update

Sample output

Note

Keep in mind this method update data in Jira. The data will be overwritten during next synchronization.

{
    "connectionId":"2",
    "update": [{
        "connection": [{
            "name" : "new name",
            "userDn":"new user DN"
        }],
        "data":[{
            "userKey":"dave",
            "fields":[{
                "departmentNumber":"124567"
            }]
        },{
            "userKey":"admin",
            "fields":[{
                "departmentNumber":"123456"
            }]
        }]
    }]
}