Skip to content

Lists all groups in the identity store

Description

Lists all groups in the identity store. Returns a paginated list of complete Group objects. Filtering for a Group by the DisplayName attribute is deprecated. Instead, use the get_group_id API action.

If you have access to a member account, you can use this API operation from the member account. For more information, see Limiting access to the identity store from member accounts in the IAM Identity Center User Guide.

Usage

identitystore_list_groups(IdentityStoreId, MaxResults, NextToken,
  Filters)

Arguments

  • IdentityStoreId

    [required] The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string that contains numbers and lower case letters. This value is generated at the time that a new identity store is created.

    You can specify the identity store by ID or by Amazon Resource Name (ARN). For example, identity store ID d-1234567890 or identity store ARN arn:aws:identitystore::111122223333:identitystore/d-1234567890.

  • MaxResults

    The maximum number of results to be returned per request. This parameter is used in all List requests to specify how many results to return in one page.

  • NextToken

    The pagination token used for the list_users and list_groups API operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to retrieve the next page of results.

  • Filters

    A list of Filter objects, which is used in the list_users and list_groups requests.

Value

A list with the following syntax:

list(
  Groups = list(
    list(
      IdentityStoreId = "string",
      GroupId = "string",
      GroupArn = "string",
      Revision = "string",
      DisplayName = "string",
      ExternalIds = list(
        list(
          Issuer = "string",
          Id = "string"
        )
      ),
      Description = "string",
      CreatedAt = as.POSIXct(
        "2015-01-01"
      ),
      UpdatedAt = as.POSIXct(
        "2015-01-01"
      ),
      CreatedBy = "string",
      UpdatedBy = "string"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_groups(
  IdentityStoreId = "string",
  MaxResults = 123,
  NextToken = "string",
  Filters = list(
    list(
      AttributePath = "string",
      AttributeValue = "string"
    )
  )
)