Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-3047

Add the ability to specify the directory when creating a group via REST API

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • None
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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

        1. My Crowd.png
          My Crowd.png
          28 kB
        2. My OpenDS.png
          My OpenDS.png
          29 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              afaisal Ahmad Faisal (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: