ListOrganizations

Updated at:

Retrieves a list of organizations for the current user.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /organizations/list HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

accessToken

string

No

The personal access token. This parameter is not required when authenticating with an Alibaba Cloud AccessKey pair or Security Token Service (STS).

agp_adf6bc4433173ab3cb43195b6ff9213d

accessLevel

integer

No

Returns only organizations where the user has the specified access level.

  • 5: external member

  • 15: member

  • 60: administrator

  • 70: owner

5

minAccessLevel

integer

No

Returns only organizations where the user's access level is greater than or equal to the specified value.

  • 5: external member

  • 15: member

  • 60: administrator

  • 70: owner

Note

If specified, minAccessLevel takes precedence over accessLevel.

60

Response elements

Element

Type

Description

Example

object

The response object.

requestId

string

The request ID.

95FE5953-FF5B-5F80-94AD-FFF97D990FE0

errorCode

string

The error code.

SYSTEM_UNKNOWN_ERROR

errorMessage

string

The error message.

""

total

integer

The total number of entries.

2

success

boolean

Indicates whether the request was successful.

true

result

array<object>

A list of organization objects.

object

An object containing the details of a single organization.

id

integer

The primary key ID of the organization.

Note

This is an internal ID that is null if the organization has not enabled Alibaba Cloud Codeup.

5240

accessLevel

integer

The user's access level in the organization.

  • 5: external member

  • 15: member

  • 60: administrator

  • 70: owner

60

organizationId

string

The unique identifier for the organization, found in the URL on Alibaba Cloud DevOps: https://devops.aliyun.com/organization/[organizationId].

60de7a6852743a5162b5f957

organizationName

string

The organization name.

云效Codeup

organizationRole

string

The user's role in the organization.

  • ORG_EXTERNAL_MEMBER: external member

  • ORG_MEMBER: member

  • ORG_ADMIN: administrator

  • ORG_OWNER: owner

ORG_ADMIN

organizationAlias

string

The organization alias.

Note

This field is populated for organizations that have enabled Alibaba Cloud Codeup; otherwise, it is null or empty.

alias-云效Codeup

namespaceId

string

The namespace ID.

600002

Examples

Success response

JSON format

{
  "requestId": "95FE5953-FF5B-5F80-94AD-FFF97D990FE0",
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "errorMessage": "\"\"",
  "total": 2,
  "success": true,
  "result": [
    {
      "id": 5240,
      "accessLevel": 60,
      "organizationId": "60de7a6852743a5162b5f957",
      "organizationName": "云效Codeup",
      "organizationRole": "ORG_ADMIN",
      "organizationAlias": "alias-云效Codeup",
      "namespaceId": "600002"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.