We've recently installed Crowd in our Test environment, which has Bitbucket (BB), JIRA, and Confluence. We've created a Delegated AD directory in Crowd, and we can manually add AD/LDAP-based users to that Directory. We'd like to use this Directory for ALL of the apps, so we only have to create users in one Directory, and so that groups are consistent across all apps.
We added 12 users to Crowd, and put all of them into a "bitbucket-users" group.
We created an Application for BB in Crowd, and configured it so that only members of the bitbucket-users group can log into the Application. We then linked BB to this Crowd Directory/Application, and the users can login. Removing a user from the bitbucket-users group (and re-sync'ing the Dir inside BB) prevents the user from logging in. Up that point, everything seemed to work exactly as as wanted.
However, after removing some users from the bitbucket-users group as described above, the BB license count does NOT go down. Since BB can see the whole Crowd Directory (12 users), it's assigning licenses to all 12 of them. However, only 10 of them can login, after removing 2 of them from the bitbucket-users group.
We need BB to only consume 10 licenses (the # of users in the bitbucket-users group, i.e., the # of users who can actually login), and to NOT consume a license for every user in the Directory. We have 250 BB licenses, and 2000 Confluence licenses, but if we add our 2000 Confluence users to the same Directory (using different groups), BB will still see those 2000 users and we'll be over our license limit.
I'm hoping that I'm missing something, but if not, I see some options, none of which I love:
- Create separate Directories, one per Application, but this means duplicating users in different Directories
- Stop using the Delegated AD type of Directory, and switch to something like an AD "connector", and specify a custom LDAP query, but this means that we need to move our group management to AD/Outlook (would rather do it in Crowd), and it still means a separate Directory for each Application.
is there anything I'm missing, or better ways to do this? How do others setup their Crowd Directories and Applications?
Thanks,
Jim