Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-945

Create user via REST

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.0.M5
    • None
    • deb
    • None
    • Ubuntu 16.04
    • Important

    Description

      Hi,

      Currently I am evaluating syncope for our usage. I would need to do bulk user creation from REST. I started to create single user from REST client and it fails.

      From postman, I tried to create a user with below inputs. I get '400 Bad Request'. If there is anything wrong in the format.

      POST - http://135.249.22.223:8080/syncope/rest/users

      Authorization:
      Basic Auth - admin/password

      Headers:
      Content-type: application/json

      Body:
      {
      "@class": "org.apache.syncope.common.lib.to.UserTO",
      "creator": "admin",
      "lastModifier": "admin",
      "key": "rest1",
      "type": "USER",
      "realm": "/",
      "status": "Active",
      "auxClasses": [],
      "plainAttrs": [],
      "derAttrs": [],
      "virAttrs": [],
      "resources": []
      }

      Attachments

        1. core-rest.log.txt
          24 kB
          Vellingiri Mani

        Activity

          People

            Unassigned Unassigned
            vellingiri Vellingiri Mani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: