Searches for entities of entity-type (either 'user' or 'group') with the specified search restriction (see https://developer.atlassian.com/display/CROWDDEV/Crowd+Query+Language)
string
Requiredinteger
integer
string
list of users or groups is retrieved
any
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/rest/usermanagement/1/search?entity-type={entity-type}' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
{
"group": [
{
"link": {
"href": "https://crowdserver/crowd/group?groupname=group&groupname=crowd-administrators",
"rel": "self"
},
"name": "crowd-administrators"
}
]
}
Searches for entities of entity-type (either 'user' or 'group') satisfying the given search restriction
string
Requiredinteger
integer
restriction entities must satisfy
string
Requiredlist of users or groups is retrieved
any
1
2
3
4
5
6
7
8
9
10
11
12
13
curl --request POST \
--url 'http://{baseurl}/rest/rest/usermanagement/1/search?entity-type={entity-type}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"restriction-type": "property-search-restriction",
"property": {
"name": "email",
"type": "STRING"
},
"matchMode": "EXACTLY_MATCHES",
"value": "bob@example.net"
}'
1
2
3
4
5
6
7
8
9
10
11
{
"group": [
{
"link": {
"href": "https://crowdserver/crowd/group?groupname=group&groupname=crowd-administrators",
"rel": "self"
},
"name": "crowd-administrators"
}
]
}
Rate this page: