All Products
Search
Document Center

Resource Management:ListAuthorizedAccounts

Last Updated:Dec 15, 2025

Queries the members that have query permissions.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

resourcemanager:ListAuthorizedAccounts

list

*All Resource

*

None

None

Request parameters

Parameter

Type

Required

Description

Example

PageNumber

integer

No

The page number.

Pages start from page 1.

Default value: 1.

1

PageSize

integer

No

The number of entries per page.

Valid values: 1 to 100.

Default value: 10.

5

Response elements

Element

Type

Description

Example

object

The response parameters.

TotalCount

integer

The total number of entries returned.

2

RequestId

string

The request ID.

7B8A4E7D-6CFF-471D-84DF-195A7A241ECB

PageSize

integer

The number of entries per page.

5

PageNumber

integer

The page number.

1

Accounts

object

Account

array<object>

The information about the members.

object

The information about the member.

Status

string

The status of the member. Valid values:

  • CreateSuccess: The member is created.

  • PromoteVerifying: The upgrade is being confirmed.

  • PromoteFailed: The upgrade failed.

  • PromoteExpired: The upgrade expired.

  • PromoteCancelled: The upgrade is canceled.

  • PromoteSuccess: The member is upgraded.

  • InviteSuccess: The invitation is successful.

CreateSuccess

Type

string

The type of the member. Valid values:

  • CloudAccount: Alibaba Cloud account.

  • ResourceAccount: resource account.

ResourceAccount

DisplayName

string

The display name of the member.

admin

FolderId

string

The ID of the folder.

fd-bVaRIG****

ResourceDirectoryId

string

The ID of the resource directory.

rd-k4****

JoinTime

string

The time when the member joined the resource directory. The time is displayed in UTC.

2015-01-23T12:33:18Z

AccountId

string

The ID of the member account.

184311716100****

JoinMethod

string

The method by which the member joined the resource directory. Valid values:

  • invited: The member was invited to join the resource directory.

  • created: The member was created in the resource directory.

created

ModifyTime

string

The time when the member was last modified. The time is displayed in UTC.

2015-01-23T12:33:18Z

ResourceDirectoryPath

string

The path ID of the member in the resource directory (RDPath).

rd-k4****/r-Wm****/fd-bVaRIG****/184311716100****

AccountName

string

The name of the member.

someone@example.com

Examples

Success response

JSON format

{
  "TotalCount": 2,
  "RequestId": "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB",
  "PageSize": 5,
  "PageNumber": 1,
  "Accounts": {
    "Account": [
      {
        "Status": "CreateSuccess",
        "Type": "ResourceAccount",
        "DisplayName": "admin",
        "FolderId": "fd-bVaRIG****",
        "ResourceDirectoryId": "rd-k4****",
        "JoinTime": "2015-01-23T12:33:18Z",
        "AccountId": "184311716100****",
        "JoinMethod": "created",
        "ModifyTime": "2015-01-23T12:33:18Z",
        "ResourceDirectoryPath": "rd-k4****/r-Wm****/fd-bVaRIG****/184311716100****",
        "AccountName": "someone@example.com"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

404

EntityNotExists.ResourceDirectory

The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account.

The account is not used to enable a resource directory. Use the account to enable a resource directory first.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.