GET /api/users/{UserID}

Returns the overview of a user.

Authorization Roles/Permissions: Self (logged in) or Site Admin (for any user).

This topic includes the following sections:

HTTP Method

GET

Back to top

URL

https://{hostname}/api/users/{UserID}

Back to top

Sample Request

The example below shows a request for the profile of a specific user.

Request URL

https://{hostname}/api/users/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp

Sample request headers

Accept: application/json
X-Csrf-Token_{tenant}: {TokenID}

Sample request body

Not applicable.

Back to top

Request Headers

For general information on request header values, refer to HTTP Request Headers.

Header Description
Accept application/json, application/vnd.soa.v71+json, application/vnd.soa.v72+json, application/vnd.soa.v80+json, application/vnd.soa.v81+json

Back to top

Request Parameters

Parameter Parm Type Data Type Required Description
UserID Path string Required The unique ID for a specific user.

Back to top

Response

If successful, this operation returns HTTP status code 200, with the user profile of the specified user in JSON format.

Back to top

Sample Response

The sample response below shows the user profile for the specified user.

Sample response headers #1

Status Code: 200 OK
Content-Type: application/json
Date: Fri, 10 Apr 2015 16:48:58 GMT

Sample response body #1: local user: application/json

{
  "UserID" : "7864b9f3-21d9-40a0-933d-fd63a8284705.acmepaymentscorp",
  "UserName" : "JaneMead",
  "FirstName" : "Jane",
  "LastName" : "Mead",
  "AuthIdentifier" : "",
  "Visibility" : "0",
  "Email" : "jane.mead@acmepaymentscorp.com",
  "Title" : "",
  "Industry" : "",
  "Language" : [ ],
  "Technology" : [ ],
  "Favorites" : "",
  "HasPicture" : false,
  "State" : "registered",
  "AvatarURL" : "http://<hostname?/api/users/7864b9f3-21d9-40a0-933d-fd63a8284705.acmepaymentscorp/avatar",
  "Domain" : "Local Domain",
  "LastLoginDate" : "2015-04-10T21:45:05Z",
  "Disabled" : false,
  "ProfileName" : "JaneMead",
  "UserIdentificationChallenges" : {
    "UserIdentificationChallenge" : [ {
      "UserID" : "7864b9f3-21d9-40a0-933d-fd63a8284705.acmepaymentscorp",
      "ChallengeCode" : "com.soa.challenge.question.city.birth",
      "ChallengeQuestion" : "What is the city of your birth?"
    }, {
      "UserID" : "7864b9f3-21d9-40a0-933d-fd63a8284705.acmepaymentscorp",
      "ChallengeCode" : "com.soa.challenge.question.color",
      "ChallengeQuestion" : "What is your favorite color?"
    }, {
      "UserID" : "7864b9f3-21d9-40a0-933d-fd63a8284705.acmepaymentscorp",
      "ChallengeCode" : "com.soa.challenge.question.petacmepaymentscorp
      "ChallengeQuestion" : "What is the name of your pet?"
    } ]
  },
  "LoginDomainID" : "siteusers.acmepaymentscorp",
  "ForcePasswordChangeOnLogin" : false,
  "Locked" : false
}

Sample response body #2: application/json

In the example below, the user is a new user added by the Site Admin who has not yet logged in. The challenge questions have not been set up and the user account has an ExpirationDate value. Custom workflow is in place, and a phone number has also been set up for the user.

{
  "UserID" : "c512cc0c-2b0d-47b2-aa69-99bbab02599c.acmepaymentscorp",
  "UserName" : "MaryMartinson",
  "FirstName" : "Mary",
  "LastName" : "Martinson",
  "AuthIdentifier" : "",
  "Visibility" : "0",
  "Email" : "mmartinson@acmepaymentscorp.com",
  "Title" : "",
  "Industry" : "",
  "Language" : [ ],
  "Technology" : [ ],
  "Favorites" : "",
  "AvatarProvider" : "com.soa.imageprovider.type.default",
  "HasPicture" : false,
  "State" : "registered",
  "AvatarURL" : "http://{hostname}/api/users/c512cc0c-2b0d-47b2-aa69-99bbab02599c.acmepaymentscorp/avatar",
  "Domain" : "Local Domain",
  "Disabled" : false,
  "ProfileName" : "MaryMartinson",
  "LoginDomainID" : "siteusers.acmepaymentscorp",
  "ForcePasswordChangeOnLogin" : true,
  "Locked" : false,
  "ExpirationDate" : "2015-05-11T00:58:49Z"
  "UserPhones" : {
    "UserPhone" : [ {
      "CountryCode" : "+1",
      "PhoneNumber" : "(123) 456-7890",
      "Verified" : false,
      "Primary" : false
    } ]
  }
}

Sample response headers #3: Facebook user

Status Code: 200 OK
Content-Type: application/json
Date: Tue, 14 May 2013 17:54:27 GMT

Sample response body #3: Facebook user

{
  "UserID" : "user24566.acmepaymentscorp",
  "UserName" : "100000861099315",
  "FirstName" : "Jonathan",
  "LastName" : "Bellissimo",
  "AuthIdentifier" : "100000861099315",
  "Visibility" : "0",
  "Email" : "jbellissimo@acmepaymentscorp.com",
  "Title" : "",
  "Industry" : "",
  "Favorites" : "",
  "AvatarProvider" : "com.soa.imageprovider.type.default",
  "HasPicture" : true,
  "LastLoginDate" : "2013-06-14T14:43:34Z",
  "ProfileName" : "Joshie"
}

Back to top

Response Headers

For general information on response header values, refer to HTTP Response Headers.

Header Description
Content-Type application/json, application/vnd.soa.v71+json, application/vnd.soa.v72+json, application/vnd.soa.v80+json

Back to top

Response Body

Name Type Description
User User Contains information about a platform user.

Back to top

Error Codes/Messages

If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.

Item Value
401

Unauthorized. For example, you would get this response if you didn't include the custom X-Csrf-Token_{fedmemberID} header in the request, when it was required by the platform settings; or if you included an invalid or expired value for this header.

You would also get this response if you hadn't completed login before running the operation, or if you had the wrong UserID.

500 An error occurred processing the call.

More information about Akana API Platform API error messages.

Back to top

Related Topics