Skip to content
Start here

Get User Group Member

client.IAM.UserGroups.Members.Get(ctx, userGroupID, memberID, query) (*UserGroupMemberGetResponse, error)
GET/accounts/{account_id}/iam/user_groups/{user_group_id}/members/{member_id}

Get details of a specific member in a user group.

Security

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
SCIM ProvisioningAccount Settings WriteAccount Settings Read
ParametersExpand Collapse
userGroupID string

User Group identifier tag.

maxLength32
minLength32
memberID string

The identifier of an existing account Member.

maxLength32
minLength32
query UserGroupMemberGetParams
AccountID param.Field[string]

Account identifier tag.

maxLength32
minLength32
ReturnsExpand Collapse
type UserGroupMemberGetResponse struct{…}

Detailed member information for a User Group member.

ID string

Account member identifier.

CreatedAt TimeOptional

When the member was added to the user group.

formatdate-time
Email stringOptional

The contact email address of the user.

maxLength90
Status UserGroupMemberGetResponseStatusOptional

The member’s status in the account.

One of the following:
const UserGroupMemberGetResponseStatusAccepted UserGroupMemberGetResponseStatus = "accepted"
const UserGroupMemberGetResponseStatusPending UserGroupMemberGetResponseStatus = "pending"
User UserGroupMemberGetResponseUserOptional

Details of the user associated with this membership.

ID stringOptional

User identifier tag.

Email stringOptional

The contact email address of the user.

maxLength90
FirstName stringOptional

User’s first name.

LastName stringOptional

User’s last name.

Get User Group Member

package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/cloudflare-go"
  "github.com/stainless-sdks/cloudflare-go/iam"
  "github.com/stainless-sdks/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
    option.WithAPIEmail("user@example.com"),
  )
  member, err := client.IAM.UserGroups.Members.Get(
    context.TODO(),
    "023e105f4ecef8ad9ca31a8372d0c353",
    "023e105f4ecef8ad9ca31a8372d0c353",
    iam.UserGroupMemberGetParams{
      AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", member.ID)
}
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "4f5f0c14a2a41d5063dd301b2f829f04",
    "created_at": "2026-01-15T10:30:00Z",
    "email": "user@example.com",
    "status": "accepted",
    "user": {
      "id": "7c5dae5552338874e5053f2534d2767a",
      "email": "user@example.com",
      "first_name": "Alice",
      "last_name": "Smith"
    }
  }
}
Returns Examples
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "4f5f0c14a2a41d5063dd301b2f829f04",
    "created_at": "2026-01-15T10:30:00Z",
    "email": "user@example.com",
    "status": "accepted",
    "user": {
      "id": "7c5dae5552338874e5053f2534d2767a",
      "email": "user@example.com",
      "first_name": "Alice",
      "last_name": "Smith"
    }
  }
}