Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,526
Community Members
 
Community Events
184
Community Groups

Adding Crowd User via API

Edited

Hi All!

I am utilizing the CROWD REST API and I am having difficulty with adding a user to a specific Directory.

When I am sending the request with the below filled out. 

{
"name": "sampleuser",
"password": {
"value": "secret"
},
"active": true,
"first-name": "Sample",
"last-name": "User",
"display-name": "Sample User",
"email": "sample@user.cool",

"directory-name": "sample",

"directory-id": 1
}

Every time the call is executed the user is being added to the first Directory on page. 

Note: Application has access to add/modify in multiple directories.

Any help would be much appreciated!

 

3 answers

1 vote
Craig Castle-Mead
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Aug 17, 2021

Hi,

I don’t believe directory-name or directory-id are parameters you can pass through (https://docs.atlassian.com/atlassian-crowd/3.2.3/REST/#usermanagement/1/user-addUser)

Crowd will try and make the user in the first directory that application has access to. The way we work around this is by having an application per directory we want to create users in with a 1:1 relationship, then authenticate with the appropriate application user/pass for the directory you want to create the user in.

CCM

How does suggestion actual work in practice? You no longer have the ability to use directory's. Only have one. Mutiple unique userids for each user one for each application?

Has this been fixed in 5.0.2?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events