users

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...option.RequestOption) *Client

func (*Client) DeleteUser

func (c *Client) DeleteUser(
	ctx context.Context,
	id string,
	opts ...option.RequestOption,
) (*sdk.UserResponse, error)

Delete a user from the organization (Admin only)

func (*Client) GetUserById

func (c *Client) GetUserById(
	ctx context.Context,
	id string,
	opts ...option.RequestOption,
) (*sdk.UserResponse, error)

Retrieve a specific user by their ID

func (*Client) GetUsers

func (c *Client) GetUsers(
	ctx context.Context,
	opts ...option.RequestOption,
) (sdk.UsersResponse, error)

Retrieve all users in the organization

func (*Client) UpdatePassword

func (c *Client) UpdatePassword(
	ctx context.Context,
	id string,
	opts ...option.RequestOption,
) (*sdk.UserResponse, error)

Update a user's password (Admin only)

func (*Client) UpdateRole

func (c *Client) UpdateRole(
	ctx context.Context,
	id string,
	request *sdk.UpdateRoleRequest,
	opts ...option.RequestOption,
) (*sdk.UserResponse, error)

Update a user's role (Admin only)

func (*Client) UpdateUser

func (c *Client) UpdateUser(
	ctx context.Context,
	id string,
	request *sdk.UpdateUserRequest,
	opts ...option.RequestOption,
) (*sdk.UserResponse, error)

Update a user's profile information

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL