Back to Node Auth0

Class GroupsClient

docs/classes/management.SDK.GroupsClient-1.html

5.9.12.7 KB
Original Source

Class GroupsClient

Index

Constructors

constructor

Methods

get

Properties

_options

Constructors

constructor

new GroupsClient(options: BaseClientOptions): GroupsClient

Parameters

Returns GroupsClient

Methods

get

get(
id: string,
request?: GetUserGroupsRequestParameters,
requestOptions?: GroupsClient.RequestOptions,
): Promise<
Page<UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent>,
>

List all groups to which this user belongs.

Parameters

  • id: string

ID of the user to list groups for.

Request-specific configuration.

Returns Promise<Page<UserGroupsResponseSchema, GetUserGroupsPaginatedResponseContent>>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.users.groups.get("id", { fields: "fields", include_fields: true, from: "from", take: 1 })Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods get Properties _options