1. Packages
  2. Volcengine
  3. API Docs
  4. iam
  5. getGroupUsers
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Use this data source to query detailed information of iam group users

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.iam.getGroupUsers({
        userName: "jonny",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.iam.get_group_users(user_name="jonny")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iam.GetGroupUsers(ctx, &iam.GetGroupUsersArgs{
    			UserName: "jonny",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Iam.GetGroupUsers.Invoke(new()
        {
            UserName = "jonny",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.iam.IamFunctions;
    import com.pulumi.volcengine.iam.inputs.GetGroupUsersArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var default = IamFunctions.getGroupUsers(GetGroupUsersArgs.builder()
                .userName("jonny")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:iam:getGroupUsers
          Arguments:
            userName: jonny
    

    Using getGroupUsers

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getGroupUsers(args: GetGroupUsersArgs, opts?: InvokeOptions): Promise<GetGroupUsersResult>
    function getGroupUsersOutput(args: GetGroupUsersOutputArgs, opts?: InvokeOptions): Output<GetGroupUsersResult>
    def get_group_users(output_file: Optional[str] = None,
                        query: Optional[str] = None,
                        user_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetGroupUsersResult
    def get_group_users_output(output_file: Optional[pulumi.Input[str]] = None,
                        query: Optional[pulumi.Input[str]] = None,
                        user_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetGroupUsersResult]
    func GetGroupUsers(ctx *Context, args *GetGroupUsersArgs, opts ...InvokeOption) (*GetGroupUsersResult, error)
    func GetGroupUsersOutput(ctx *Context, args *GetGroupUsersOutputArgs, opts ...InvokeOption) GetGroupUsersResultOutput

    > Note: This function is named GetGroupUsers in the Go SDK.

    public static class GetGroupUsers 
    {
        public static Task<GetGroupUsersResult> InvokeAsync(GetGroupUsersArgs args, InvokeOptions? opts = null)
        public static Output<GetGroupUsersResult> Invoke(GetGroupUsersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGroupUsersResult> getGroupUsers(GetGroupUsersArgs args, InvokeOptions options)
    public static Output<GetGroupUsersResult> getGroupUsers(GetGroupUsersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:iam/getGroupUsers:getGroupUsers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UserName string
    The name of user.
    OutputFile string
    File name where to save data source results.
    Query string
    Fuzzy search, supports searching for user group names, display names, and remarks.
    UserName string
    The name of user.
    OutputFile string
    File name where to save data source results.
    Query string
    Fuzzy search, supports searching for user group names, display names, and remarks.
    userName String
    The name of user.
    outputFile String
    File name where to save data source results.
    query String
    Fuzzy search, supports searching for user group names, display names, and remarks.
    userName string
    The name of user.
    outputFile string
    File name where to save data source results.
    query string
    Fuzzy search, supports searching for user group names, display names, and remarks.
    user_name str
    The name of user.
    output_file str
    File name where to save data source results.
    query str
    Fuzzy search, supports searching for user group names, display names, and remarks.
    userName String
    The name of user.
    outputFile String
    File name where to save data source results.
    query String
    Fuzzy search, supports searching for user group names, display names, and remarks.

    getGroupUsers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    UserGroups List<GetGroupUsersUserGroup>
    The collection of user group.
    UserName string
    OutputFile string
    Query string
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    UserGroups []GetGroupUsersUserGroup
    The collection of user group.
    UserName string
    OutputFile string
    Query string
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    userGroups List<GetGroupUsersUserGroup>
    The collection of user group.
    userName String
    outputFile String
    query String
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    userGroups GetGroupUsersUserGroup[]
    The collection of user group.
    userName string
    outputFile string
    query string
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    user_groups Sequence[GetGroupUsersUserGroup]
    The collection of user group.
    user_name str
    output_file str
    query str
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    userGroups List<Property Map>
    The collection of user group.
    userName String
    outputFile String
    query String

    Supporting Types

    GetGroupUsersUserGroup

    Description string
    The description of the user group.
    DisplayName string
    The display name of the user group.
    JoinDate string
    The join date of the user group.
    UserGroupId int
    The id of the user group.
    UserGroupName string
    The name of the user group.
    Description string
    The description of the user group.
    DisplayName string
    The display name of the user group.
    JoinDate string
    The join date of the user group.
    UserGroupId int
    The id of the user group.
    UserGroupName string
    The name of the user group.
    description String
    The description of the user group.
    displayName String
    The display name of the user group.
    joinDate String
    The join date of the user group.
    userGroupId Integer
    The id of the user group.
    userGroupName String
    The name of the user group.
    description string
    The description of the user group.
    displayName string
    The display name of the user group.
    joinDate string
    The join date of the user group.
    userGroupId number
    The id of the user group.
    userGroupName string
    The name of the user group.
    description str
    The description of the user group.
    display_name str
    The display name of the user group.
    join_date str
    The join date of the user group.
    user_group_id int
    The id of the user group.
    user_group_name str
    The name of the user group.
    description String
    The description of the user group.
    displayName String
    The display name of the user group.
    joinDate String
    The join date of the user group.
    userGroupId Number
    The id of the user group.
    userGroupName String
    The name of the user group.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate