getGroupMembership

# gitlab_group_membership

Provides details about a list of group members in the gitlab provider. The results include id, username, name and more about the requested members.

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(GitLab.GetGroupMembership.InvokeAsync(new GitLab.GetGroupMembershipArgs
        {
            GroupId = 123,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-gitlab/sdk/v4/go/gitlab"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := 123
		_, err := gitlab.LookupGroupMembership(ctx, &gitlab.LookupGroupMembershipArgs{
			GroupId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_gitlab as gitlab

example = gitlab.get_group_membership(group_id=123)
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";

const example = pulumi.output(gitlab.getGroupMembership({
    groupId: 123,
}, { async: true }));

Using getGroupMembership

function getGroupMembership(args: GetGroupMembershipArgs, opts?: InvokeOptions): Promise<GetGroupMembershipResult>
def get_group_membership(access_level: Optional[str] = None,
                         full_path: Optional[str] = None,
                         group_id: Optional[int] = None,
                         opts: Optional[InvokeOptions] = None) -> GetGroupMembershipResult
func LookupGroupMembership(ctx *Context, args *LookupGroupMembershipArgs, opts ...InvokeOption) (*LookupGroupMembershipResult, error)

Note: This function is named LookupGroupMembership in the Go SDK.

public static class GetGroupMembership {
    public static Task<GetGroupMembershipResult> InvokeAsync(GetGroupMembershipArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AccessLevel string
Only return members with the desidered access level. Acceptable values are: guest, reporter, developer, maintainer, owner.
FullPath string
The full path of the group.
GroupId int
The ID of the group.
AccessLevel string
Only return members with the desidered access level. Acceptable values are: guest, reporter, developer, maintainer, owner.
FullPath string
The full path of the group.
GroupId int
The ID of the group.
accessLevel string
Only return members with the desidered access level. Acceptable values are: guest, reporter, developer, maintainer, owner.
fullPath string
The full path of the group.
groupId number
The ID of the group.
access_level str
Only return members with the desidered access level. Acceptable values are: guest, reporter, developer, maintainer, owner.
full_path str
The full path of the group.
group_id int
The ID of the group.

getGroupMembership Result

The following output properties are available:

AccessLevel string
One of five levels of access to the group.
FullPath string
GroupId int
Id string
The provider-assigned unique ID for this managed resource.
Members List<Pulumi.GitLab.Outputs.GetGroupMembershipMember>
The list of group members.
AccessLevel string
One of five levels of access to the group.
FullPath string
GroupId int
Id string
The provider-assigned unique ID for this managed resource.
Members []GetGroupMembershipMember
The list of group members.
accessLevel string
One of five levels of access to the group.
fullPath string
groupId number
id string
The provider-assigned unique ID for this managed resource.
members GetGroupMembershipMember[]
The list of group members.
access_level str
One of five levels of access to the group.
full_path str
group_id int
id str
The provider-assigned unique ID for this managed resource.
members Sequence[GetGroupMembershipMember]
The list of group members.

Supporting Types

GetGroupMembershipMember

AccessLevel string
Only return members with the desidered access level. Acceptable values are: guest, reporter, developer, maintainer, owner.
AvatarUrl string
The avatar URL of the user.
ExpiresAt string
Expiration date for the group membership.
Id int
The unique id assigned to the user by the gitlab server.
Name string
The name of the user.
State string
Whether the user is active or blocked.
Username string
The username of the user.
WebUrl string
User’s website URL.
AccessLevel string
Only return members with the desidered access level. Acceptable values are: guest, reporter, developer, maintainer, owner.
AvatarUrl string
The avatar URL of the user.
ExpiresAt string
Expiration date for the group membership.
Id int
The unique id assigned to the user by the gitlab server.
Name string
The name of the user.
State string
Whether the user is active or blocked.
Username string
The username of the user.
WebUrl string
User’s website URL.
accessLevel string
Only return members with the desidered access level. Acceptable values are: guest, reporter, developer, maintainer, owner.
avatarUrl string
The avatar URL of the user.
expiresAt string
Expiration date for the group membership.
id number
The unique id assigned to the user by the gitlab server.
name string
The name of the user.
state string
Whether the user is active or blocked.
username string
The username of the user.
webUrl string
User’s website URL.
access_level str
Only return members with the desidered access level. Acceptable values are: guest, reporter, developer, maintainer, owner.
avatar_url str
The avatar URL of the user.
expires_at str
Expiration date for the group membership.
id int
The unique id assigned to the user by the gitlab server.
name str
The name of the user.
state str
Whether the user is active or blocked.
username str
The username of the user.
web_url str
User’s website URL.

Package Details

Repository
https://github.com/pulumi/pulumi-gitlab
License
Apache-2.0
Notes
This Pulumi package is based on the gitlab Terraform Provider.