aboutsummaryrefslogtreecommitdiff
This is tool to query Atlassian Crowd server via command line.

Use --help for commands and options info. Commands supported:

user, group
    Query user/group info.
users, groups
    Query user/group list. There can be optional query filter parameter
    using query language as desctibed in
    https://developer.atlassian.com/display/CROWDDEV/Crowd+Query+Language
    e.g.:
        ./crowd-tool users firstName=Paul
    Note that values containing spaces need to be quoted for passing to Crowd,
    which in turn requires additional single-quoting on shell command line:
        ./crowd-tool users displayName='"Paul S*"'
usergroups
    Query user's groups. Either direct memberships shown, or, with --nested
    option, recursive.
groupusers
    Query group's member users.
groupgroups
    Query group's member groups.
members
    Query group's members - both users and groups.
ismember
    Check if given user is member of given group.

Example:

./crowd-tool -u <crowd-user> -P groupusers infrastructure

Replace <crowd-user> with your Crowd access ("application") credentials.
-P switch will cause for password prompt for that user. The command will
list users which are direct members of "infrastructure" Crowd group.