Skip to main content

ListAPIUsers

Lists all API users in the authenticated group context.

Returns all API users that belong to the current group, regardless of their active/inactive state.

Method Options​

Authorisation specification of the ListAPIUsers method.

TypeMETHOD_TYPE_READ
Access LevelMETHOD_ACCESS_LEVEL_AUTHORISED
Roles
  • ROLE_IAM_ADMIN
  • ROLE_IAM_VIEWER
  • ROLE_IAM_API_USER_ADMIN
  • ROLE_IAM_API_USER_VIEWER

Parameters​

Request and response parameter message overview:

Input: ListAPIUsersRequest Message​

No parameters required.

Returns: ListAPIUsersResponse Message​

FieldTypeDescription
ApiUsers

meshtrade.iam.api_user.v1.APIUser[]

Code Examples​

Select supported SDK in the language of your choice for a full example of how to invoke the this method:

package main

import (
"context"
"log"

api_userv1 "github.com/meshtrade/api/go/iam/api_user/v1"
)

func main() {
ctx := context.Background()

// Default configuration is used and credentials come from MESH_API_CREDENTIALS
// environment variable or default discovery methods. Zero config required
// unless you want custom configuration.
service, err := api_userv1.NewAPIUserService()
if err != nil {
log.Fatalf("Failed to create service: %v", err)
}
defer service.Close()

// Create request with service-specific parameters
request := &api_userv1.ListAPIUsersRequest{
// FIXME: Populate service-specific request fields
}

// Call the ListAPIUsers method
response, err := service.ListAPIUsers(ctx, request)
if err != nil {
log.Fatalf("ListAPIUsers failed: %v", err)
}

// FIXME: Add relevant response object usage
log.Printf("ListAPIUsers successful: %+v", response)
}

Advanced Configuration​

For advanced client configuration options (custom endpoints, TLS settings, timeouts), see the SDK Configuration Guide.

Other Methods​