6 Replies Latest reply on Jul 24, 2015 8:32 AM by nilsheuer

    Creating a federated user

    dbgilbert

      I'm working with the Jive REST API (on a cloud instance, v3.10), and am trying to create a program that calls the REST API to create users federated with SAML. I've been able to update user profiles, but when creating them I always run into a 400 Bad Request. I've shuffled around fields and tried including/omitting many to find out what aspect of the request is bad, but I'm stumped, as it's already unclear whether I should or should not be including a lot of them. Do I need username/password, since that's handled through SAML? Should I not be providing emails or names? It's very frustrating to only be told the request is Bad without information about which fields are incorrect/missing. Below is the sample Person I'm trying to create; I'd appreciate it if someone could spot the problem, or otherwise explain how to create a federated account via API.

       

      {

        "emails": [

          {

            "jive_label": "Email",

            "type": "work",

            "primary": true,

            "value": "APerson@seic.com"

          }

        ],

        "name": {

          "familyName": "Person",

          "givenName": "Abcd"

        },

        "jive": {

          "federated": true,

          "externalIdentities": [

            {

              "identityType": "SAML",

              "identity": "APerson"

            }

          ],

          "profile": [

            {

              "jive_label": "Desk Location",

              "value": "http://internal/url/campus-map/?view=map&usr=APerson@seic.com",

              "jive_displayOrder": 4,

              "jive_showSummaryLabel": false

            },

            {

              "jive_label": "Department",

              "value": "SOME DEPARTMENT",

              "jive_displayOrder": 1,

              "jive_showSummaryLabel": false

            },

            {

              "jive_label": "Office",

              "value": "",

              "jive_displayOrder": 3,

              "jive_showSummaryLabel": false

            },

            {

              "jive_label": "Employee ID",

              "value": "abc123",

              "jive_displayOrder": 8,

              "jive_showSummaryLabel": false

            },

            {

              "jive_label": "Extension",

              "value": "",

              "jive_displayOrder": 18,

              "jive_showSummaryLabel": false

            }

          ]

        },

        "phoneNumbers": [

          {

            "jive_label": "Phone Number",

            "primary": true,

            "type": "work",

            "value": "",

            "jive_displayOrder": 0,

            "jive_showSummaryLabel": false

          }

        ]

      }