circle-info
Squadcast is now SolarWinds Incident Response

Users

Overview

Available Operations

getAllTokens

Returns generated api tokens of all the users of the organization. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.UsersGetAllTokensResponse>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

removeToken

Removes refresh token of a user from organization. Upon success the refresh token of a user will be removed from the organization. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<Uint8Arrayarrow-up-right>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

list

Returns all the users of the organization. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.UsersGetAllUsersResponse>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

add

Add user to the organization with given role if not exists. Returns the user object in response. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.UsersAddUserResponse>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

updateOrgLevelPermissions

Update Org Level Permissions

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.UsersUpdateOrgLevelPermissionsResponse>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

delete

This API replaces the swap_user for all the entities in Squadcast with user_id provided and deletes the user.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.UsersDeleteUserResponse>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

getRoles

Returns all available user roles. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.UsersGetUserRolesResponse>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

removeFromOrg

Remove user from organization. Upon sccess the user will be removed from the organization. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<Uint8Arrayarrow-up-right>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

getById

Returns a users details of the given userID in the request param. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.UsersGetUserByIdResponse>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

updateById

Update User by userID. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.UsersUpdateUserByIDResponse>

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

Last updated