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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

How do I remove users from a Delegated Directory?

I use Crowd for permission control on my Atlassian suite.  I have an internal directory for this purpose, and then I have a link to AD for a delegated authentication directory.

The problem I have is that users have tried to log into our suite without having an account to grant them permissions on the internal directory, and it has automatically created an account in the delegated directory.  This has pushed me above the available license allowance, so I had to apply a new eval license in order to keep operating.

I have since found how to turn off auto-user creation, but how do I remove users from this delegated directory's cache?

1 answer

1 accepted

0 votes
Answer accepted

The extra users in the delegated directory need to be deleted.  The User ID is in the cwd_user table, and will only have a single user entry to the delegated directory.

Get your directory list:

select id,directory_name,directory_type from cwd_directory;

Then get your user ID list.

select id,lower_user_name,directory_id from cwd_user order by lower_user_name;

Remove the user attributes, then the user that is only has one entry in the delegated directory.  In this case, one of mine in the directory was 2392106:

crowddb=> delete from cwd_user_attribute where user_id = 2392106;
crowddb=> delete from cwd_user where id = 2392106;

 Then from Settings -> Licensing, recalculate the user total.


As I understood user attributes is extra to remove. Did you meet with problem after ?

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events