Employee onboarding

This is an example of how the app can add value to your Atlassian environment if you have a complex signup flow and need your users to be able to login immediately.

TLDR; You want that user to be able to access Jira, etc immediately. But... it's cumbersome to have to login to Jira, Confluence and Bitbucket separately to start the sync of the user directory manually. Add a few lines to your onboarding script and solve this problem forever. That easy.

Use case:

Jira, Confluence and/or Bitbucket are probably not the only applications that you use inside your business. When you sign up a new user or employee, it's problably not limited to creating a Jira account only. The new user must be added in a million systems and that takes a lot of time. But you are a ninja admin and you automated the hack out of this. You run this awesome script that you developed over the last few years. It adds the user to all the systems, send an email with the results to the user, an sms with the password and you're done.

Only now you learn that the user is not yet able to login to Jira and Confluence and... WHY?! You ask. The reason is that the Atlassian products only synchronize configured directories on a scheduled interval. The default interval is 60 minutes and for an eager user that is a long wait.

You know how to fix that... quickly login to Jira and start the sync manually to force that user to become available. Oh wait, now Confluence. Then Bitbucket. You know how you feel now.

Solution

Your awesome script may very well be extended with a couple of lines to force the sync of the user directories in the various Atlassian products:


#!/bin/sh
curl -X POST -u admin:admin http://localhost:2990/jira/rest/nl-avisi-sync-add-on/1.0/directories/2/actions/sync
curl -X POST -u admin:admin http://localhost:1990/jira/rest/nl-avisi-sync-add-on/1.0/directories/2/actions/sync 
curl -X POST -u admin:admin http://localhost:7990/bitbucket/rest/nl-avisi-sync-add-on/1.0/directories/2/actions/sync 

This will save your new user a lot of frustration, saves you a couple of service desk inquires probably and saves a lot of time you can spend on more important things.

Last updated