It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I get the directory ID for use in the Atlassian SCIM Users API?

I would like to use this API https://developer.atlassian.com/cloud/admin/user-provisioning/rest/#about BUT I am blocked because I don't know how to get the Directory ID.

 

P.S. It would be nice to add a SCIM tag to posts.

--


Here is some background/context:

I have a personal sandbox org and my user has site admin rights.

I am trying to makes calls following the guides here: https://developer.atlassian.com/cloud/admin/user-provisioning/rest/#about

I have access to an admin user account on a sandbox environment.  I am able to successfully authenticate myself, but now need help finding the directory ID in order to make successful calls.

One example endpoint I would like to hit is this:

var options = {

   method: 'GET',

   url: 'https://api.atlassian.com/scim/directory/{directoryId}/Users/{userId}?attributes={attributes}',

   headers: {

      'Authorization': 'Bearer ',

      'Accept': 'application/json'

   }

};

 

I also looked at the steps described here https://developer.atlassian.com/cloud/admin/user-provisioning/swagger.v3.json

Go to [admin.atlassian.com](https://admin.atlassian.com/) and click your organization.

2. Click **Directory**, then click **User provisioning**.

3. Click the **Directory** tab, then click the **Regenerate API key** button.

4. Click **Regenerate key**.

5. Copy the organization ID and the API key to a safe place. Once you close the API key information screen, we won't show you this information again.

6. Click **Done**."

 

After step 1, when logged into my environment, I am unable to find the "Directory" or "User provisioning" tabs.  Instead I directly land on user management:

atlassianpro.jpg

1 answer

0 votes
Dario Atlassian Team Sep 20, 2019

Hi @Jared Praino ,

As the first step of the quoted documentation says, in order to see the Directory tab you need to select an organization:

Go to https://admin.atlassian.com/ and click your organization.

admin.jpg

 

 

Now, it can be the case that you don't have any organization configured and that's why you are sent straight to the User Management of your instance instead. In this case, please review below links for more details on Organizations and how to setup one:

 

 

Let me know if this helps.

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

334 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you