Details
-
Suggestion
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Using REST API, it's possible for us to authenticate to Crowd by using a Crowd application credentials, and perform some operations such as retrieving user/group information, etc.
Specifically when creating a group in Crowd, we are given the option to specify the directory which we want to create a group in. But when using REST API, apparently we are unable to specify which directory we should the created group belongs to, and upon creating a group via REST, the group will be added to all of the directories associated to the application.
A sample REST request to create a group in Crowd:
curl -D- -u jira:admin -X POST --data @/Users/BaBs/Desktop/group.json -H "Content-Type: application/json" http://afaisal-pc:8095/crowd/rest/usermanagement/latest/group
Sample of the JSON data:
{ "name" : "MyGroup", "type" : "GROUP", "description" : "MyDescription", "active" : true }
Output when executing the above REST POST request:
- The group will appear in My Crowd directory:
- The group will also get created in My OpenDS directory:
note that both My Crowd and My OpenDS directory are mapped to the jira application
Hence, it will be great if we are able to specify the directory ID when creating a group as well, so that the group will specifically be created under the specified directory
Attachments
Issue Links
- duplicates
-
CWD-3050 Expose user directories as REST resources
- Under Consideration
- is duplicated by
-
CWD-3226 Directory Id is ignored while adding user by SOAP
- Closed
- is incorporated by
-
CWD-3050 Expose user directories as REST resources
- Under Consideration
- is related to
-
CWD-4608 Allow new users to be created in specific directories via the REST API
- Closed