-
Suggestion
-
Resolution: Fixed
-
None
-
Atlassian Crowd Version: 2.0-beta2 (Build:#401 - Jun 22, 2009)
At present, the REST API returns an HTTP 403 (Access forbidden) in certain cases, if the request URL does not include a search parameter.
- /directory/DIRECTORY-KEY/user
- /directory/DIRECTORY-KEY/group
For example, this URL will cause a 403:
http://localhost:8095/crowd/rest/admin/latest/directory/atlassian%20crowd/user
Whereas this one is fine:
http://localhost:8095/crowd/rest/admin/latest/directory/atlassian%20crowd/user?search=ad
The reason is that we don't want API calls to return the entire list of users from the directory.
Instead of an HTTP 403, we should either should return a meaningful message, or allow some other mechanism of requesting and/or restricting the number of users to be returned.