DescribeGroups

Updated at:

Queries user groups.

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

ecd:DescribeGroups

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

GroupId

string

No

The ID of the user group.

ug-16nf7xxh4o9gc****

BizType

string

No

Note

This parameter is not publicly available.

ENTERPRISE

SolutionId

string

No

Note

This parameter is not publicly available.

co-0esnf80jab***

GroupName

string

No

The name of the user group.

TestGroup

PageSize

integer

No

The number of entries to return on each page in paging Settings for a paged query. Maximum value: 100. Default value: 10.

10

PageNumber

integer

No

The page number for paging in a paged query.

1

TransferFileNeedApproval

boolean

No

Specifies whether file approval is enabled.

false

LoginPolicyId

string

No

The ID of the associated login policy used for filtering.

ExcludeAttachedLoginPolicyGroups

boolean

No

Specifies whether to exclude user groups that are associated with login policies.

IdpId

string

No

The ID of the identity provider (IdP) used to filter user groups.

idp-hlyexfvwert9m8****

BusinessChannel

string

No

The business channel.

ENTERPRISE

Response elements

Element

Type

Description

Example

object

The response data structure.

RequestId

string

The ID of the request.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****

Groups

array<object>

The list of user groups.

array<object>

The user group information.

GroupName

string

The name of the user group.

TestGroup

GroupId

string

The ID of the user group.

ug-2412ojkwtybd****

Description

string

The description of the user group.

A test group.

CreateTime

string

The time when the user group was created. The time follows the ISO 8601 standard in the UTC+8 time zone.

2025-08-07T13:40:40+08:00

UserCount

integer

The number of members in the user group.

20

TransferFileNeedApproval

boolean

Specifies whether file approval is enabled.

false

AttachedLoginPolicy

object

The login policy associated with the user group.

PolicyId

string

The ID of the login policy.

Name

string

The logon Policy Name.

AuthedResources

object

The list of assigned resources.

string

The assigned resource.

Valid values:

  • DesktopGroup :

    Shared cloud computer.

DesktopGroup

UploadNeedApproval

boolean

Indicates whether approval is required for uploads.

DownloadNeedApproval

boolean

Indicates whether approval is required for downloads.

Count

integer

The total number of returned results.

1

Examples

Success response

JSON format

{
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
  "Groups": [
    {
      "GroupName": "TestGroup",
      "GroupId": "ug-2412ojkwtybd****",
      "Description": "A test group.",
      "CreateTime": "2025-08-07T13:40:40+08:00",
      "UserCount": 20,
      "TransferFileNeedApproval": false,
      "AttachedLoginPolicy": {
        "PolicyId": "",
        "Name": ""
      },
      "AuthedResources": {
        "key": "DesktopGroup"
      },
      "UploadNeedApproval": false,
      "DownloadNeedApproval": false
    }
  ],
  "Count": 1
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.