API
Documents the REST API for the User Directory API app
Authentication
You should authenticate as a user with administrator credentials. To use Basic Authentication with the API, send the username and password associated with the account.
For example, if you’re accessing the API via cURL, the following command would authenticate you if you replace 'admin' with your username. cURL will prompt you to enter the password.
For simplicity sake, we will not repeat the authentication for the resources below.
List directories
GET
https://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/
This endpoint lists all the directories that are available in the host product. Note that not all directories are syncable, for example the internal directory. This is indicated by the attribute synchronisable.
Sync a directory
POST
https://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/:id/actions/sync?blocking=false
Request a directory to start syncing immediately.
Path Parameters
Query Parameters
Bitbucket Server doesn’t like synchronous calls. See BSERV-7073 and BSERV-7070.
List users in a specific directory
GET
https://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/:id/users
Lists the users in a specific directory. A maximum of 100 users is returned. If there are more users, the response will contain a key named 'next', the value is a url that points to the next 'page' of results. A cursor value denotes the position in the list of users where the current call left off.
Path Parameters
Query Parameters
Last updated