Get users

You can get user information through an API call.

Note:

Only one user per GET call is supported.

Step 1: Run the cURL call

Run the following cURL call to get user information.

curl -H "Authorization: Bearer %token%" -X GET https://hs-umt-scim.oracleindustry.com/scim/<trialname>/1.0/users/<username>

Sample request and response:

GET /scim/TESTTRIAL/1.0/users
HOST: <hostname>
Accept: application/json
Authorization: Bearer eyJhGciO1J5...-MBqc
{
   "schemas":[
      "urn:ietf:params:scim:schemas:core:2.0:User",
      "urn:umt:extension:schema:user"

   ],
  "username": "SampleUserName",
  "name" : {
    "familyName": "Doe",
    "givenName": "Jane",
     "middleName": "Julia",
    "honorificPrefix": "Mrs"

   },
  "displayName": "Jane Doe",
  "profileUrl": "https://HOST_NAME:PORT/jdoe",
  "userType": "Site",
  "preferredLanguage": "English (United States)",
  "locale": "English (United States)",
  "phoneNumbers": [
    {

      "value": "+1 555-555-5555",

      "type": "primary"

    },

    {

      "value": "+1 555-555-5555",

      "type": "alternate"

    },

    {
      "value": "+1 555-555-5555",

      "type": "pager"

    },

    {

      "value": "+1 555-555-4444",

      "type": "fax"

    }

  ],

  "emails":
  [
    {
      "value": "jdoe@example.com",
      "type": "work"
    }
  ],
 "addresses":
    {      "streetAddress": "2300 Oracle Way",
      "formatted": "Suite 101",

      "locality": "Austin",

      "region": "Texas",

      "postalCode": "78741",

      "country": "USA"

    },
"groups":
 [
        {
            "value": "SamplequeryGrp",
            "type": "query"
        },
        {
            "value": "Samplesignature",
            "type": "signature"
        },
        {
            "value": "Samplemanageruser",
            "type": "manageruser"
        },
        {
            "value": "Samplereportgroup",
            "type": "reportgroup"
        }
],
"roles": "SampleRightsGroup",
 "urn:umt:extension:schema:user":

  {
      "SiteMnemonic":
       [
         "123",
         "456"
      ],
      "DateFormat": "Month / Day / Year",
      "TrainingStatus": "Trained",
      "DoTechnicalAssessment": true
    }

}