Get Organization Details

get

/iam/governance/selfservice/api/v1/organizations/{orgid}

Returns the organization details specified by the organization id in the path parameter. The attributes that are to be returned by the organization can also be controlled by specifying the attributes query parameter. A Comma-separated list of the attribute names is to be passed to the attribbutes query parameter. For example to get the organization name and description only the URI is "/organizations?fields=Organization Name, Parent Organization Name".

Request

Supported Media Types
Path Parameters
Query Parameters
  • The attributes that are to be returned for the organization can also be controlled by specifying the attributes query parameter. A Comma-separated list of the attribute names is to be passed to the attributes query parameter. For example to get the organization name and description only the URI is "/organization/{orgid}?fields=name, description.
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : OrganizationIdResponse
Type: object
Show Source
Nested Schema : fields
Type: array
Show Source
Nested Schema : Fields
Type: object
Show Source
Nested Schema : LinkDataInstances
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 an organization with the return fields filtered by organization Name and Parent Organization Name. 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/organizations/4?fields=Organization Name,Parent Organization Name"

Example of Response Body

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

{
  "links": [
    {
      "rel": "self",
      "href": "http://pseudo.com/iam/governance/selfservice/api/v1/organizations/4"
    }
  ],
  "id": 4,
  "fields": [
    {
      "name": "Parent Organization Name",
      "value": "Top"
    },
    {
      "name": "Organization Name",
      "value": "Org1"
    }
  ]
}
Back to Top