User Directory API
  • Introduction
  • How to use the app
    • API
    • Examples with curl
  • Use cases
    • Employee onboarding
    • Web signup flow
  • Links
    • Marketplace
    • Support
Powered by GitBook
On this page
  • Listing directories
  • Start a sync
  • List users

Was this helpful?

  1. How to use the app

Examples with curl

Provides some examples of using User Directory API with curl

PreviousAPINextEmployee onboarding

Last updated 3 years ago

Was this helpful?

Listing directories

This gives you an overview of the configured directories. This is also the place to find out about the id that you need to start a directory sync.

curl -u admin http://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/

See the for elaborate documentation about the options

Our API is not actively checking for the Content-Type that you request, as by default we return json only. However, depending on your deployment, not passing the Content-Type header, might result in an error like: 403 XSRF check failed. That can be resolved by passing the Content-Type header and in some cases the Origin header as well:

curl -H "Content-Type: application/json" -H "Origin: https://your.domain"

Start a sync

curl -X POST http://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/10000/actions/sync -u admin

List users

curl http://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/10000/users -u admin
API documentation