InsionInsion
Go

List users

Retrieve users for the authenticated organization

page, err := client.ListUsers(ctx, &sdk.GetAPIV1UsersRequest{Limit: sdk.Int(20)})

ListUsers(context.Context, *sdk.GetAPIV1UsersRequest, ...option.RequestOption) accepts pagination cursors plus ClientID, Email, Status, and Insion User filters. Do not combine the two cursor fields. The response provides Data and HasMore.

Use Limit to size a page. StartingAfter and EndingBefore are mutually exclusive Insion-ID cursors. Use ClientID, Email, Status, or User to narrow results, and continue with the last returned user ID while HasMore is true.