Search account based on account id

get

/iam/governance/selfservice/api/v1/accounts/{accountid}

Returns the account details of the specified account id. The attributes that are to be returned can be specified as part of the query parameter named "fields". For example: The URI to get the user name attribute only for a particular account is /accounts/{accountid}?fields=name. The attributes are to be spcified in a Comma-separated list.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Attributes to be returned in the result. Comma-separated attributes are accepted. Sample value for attributes is "accountName, status, accoutType, resource, applicationInstance"
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : SingleAccountGetResponseInstance
Type: object
Show Source
Nested Schema : accountData
Type: array
Show Source
Nested Schema : normalizeData
Type: array
Show Source
Nested Schema : AccountData
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source
Nested Schema : NormalizeData
Type: object
Show Source

401 Response

Unauthorized

404 Response

Requested entity not found

500 Response

Internal Server Error

Default Response

Unexpected error
Back to Top

Examples

This example retrieves account information for a given account. The information shown here is against a pseudo system and serves as a prototype.

cURL Example

curl  -H "Content-Type: application/json"  -X GET  -u username:password  https://pseudo.com/iam/governance/selfservice/api/v1/accounts/3

Example of GET Response Body

The following example shows the contents of the response body in JSON format.

{
  "userId": "1005",
  "appInstanceId": "21",
  "requestId": "",
  "status": "Provisioned",
  "accountType": "Primary",
  "policyKey": "",
  "processInstanceKey": "75",
  "provisionedBy": "1",
  "provisionedByMechanism": "Direct Provision",
  "provisionedOnDate": "2016-03-07",
  "riskSummary": 0,
  "accountDescription": "LOGIN13",
  "validFromDate": "2016-03-07",
  "normalizeData": {
    "account Login": [
      {
        "0": "LOGIN13"
      }
    ],
    "Password": [
      {
        "0": ""
      }
    ],
    "UD_CHILDOBJ": [
      
    ],
    "account_ID": [
      {
        "0": "2222"
      }
    ],
    "accountData": {
      "UD_DIS2365_UPDATEBY": "1",
      "UD_DIS2365_REVOKE": "",
      "UD_DIS2365_CREATE": "2016-03-07",
      "UD_DIS2365_ACCOUNTID": "2222",
      "UD_DIS2365_NOTE": "",
      "UD_DIS2365_CREATEBY": "1",
      "UD_DIS2365_KEY": "1",
      "UD_DIS2365_VERSION": "2",
      "UD_DIS2365_PASSWORD": "",
      "UD_DIS2365_DATA_LEVEL": "",
      "UD_DIS2365_IT": "33",
      "UD_DIS2365_UPDATE": "2016-03-16",
      "UD_DIS2365_ROWVER": "-",
      "UD_DIS2365_LOGIN": "LOGIN13"
    },
    "links": [
      {
        "rel": "self",
        "href": "http://pseudo.com/iam/governance/selfservice/api/v1/accounts/3"
      }
    ],
    "id": "3"
  }
}
Back to Top