Get All Organizations

get

/iam/governance/selfservice/api/v1/organizations

Returns the organizations assigned to the logged in user. The filter query parameter can be used to return a subset of the organizations. SCIM filter is accepted. For example The query to get all organizations whose name starts with Oracle is "/organizations?q=Organization::Name sw Oracle". 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, Organization Status".

Request

Supported Media Types
Query Parameters
  • 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 attributes query parameter. For example to get the organization name and description only the URI is "/organizations?fields=Organization Name".
  • Filter can be applied for "entityType" for that possible value is - Role and "roleid" for that organizations is retrieved. here should not be any spaces for filter value. Sample value for filter is "entityType eq Role" or "entityType eq Role and roleid={roleId}".
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : OrganizationResponse
Type: object
Show Source
Nested Schema : organizations
Type: array
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source
Nested Schema : OrganizationResponseMap
Type: object
Show Source
Nested Schema : fields
Type: array
Show Source
Nested Schema : Fields
Type: object
Show Source

401 Response

Unauthorized

404 Response

Resource not found

500 Response

Internal Server Error

Default Response

Unexpected error
Back to Top

Examples

This example retrieves all organizations.. 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

Example of GET Response Body

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

{
    "links": [
        {
            "rel": "self",
            "href": "http://pseudo.com:PORT/iam/governance/selfservice/api/v1/organizations?
offset=1&limit=10"
        },
        {
            "rel": "first",
            "href": "http://pseudo.com:PORT/iam/governance/selfservice/api/v1/organizations?
offset=1&limit=10"
        }
    ],
    "count": 1,
    "hasMore": false,
    "totalResult": -1,
    "organizations": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "http://pseudo.com:PORT/iam/governance/selfservice/api/v1/organizations/1"
                }
            ],
            "id": "1",
            "fields": [
                {
                    "name": "Applicable Password Policy",
                    "value": 1
                },
                {
                    "name": "Parent Organization Name",
                    "value": "Top"
                },
                {
                    "name": "act_create",
                    "value": "2019-03-29T20:14:27Z"
                },
                {
                    "name": "Organization Name",
                    "value": "Xellerate Users"
                },
                {
                    "name": "parent_key",
                    "value": 3
                },
                {
                    "name": "act_createby",
                    "value": 1
                },
                {
                    "name": "Organization Status",
                    "value": "Active"
                },
                {
                    "name": "act_data_level",
                    "value": 1
                },
                {
                    "name": "act_updateby",
                    "value": 1
                },
                {
                    "name": "Organization Customer Type",
                    "value": "System"
                },
                {
                    "name": "act_update",
                    "value": "2019-03-29T20:14:27Z"
                },
                {
                    "name": "Enforce New Password Policy",
                    "value": "Yes"
                }
            ]
        }
    ]
}
Back to Top