For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetUsers

This method can be used for the following functionality: Get details for all users.

Parameters

The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.

Headers

GET /api/ss/users HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close

Query

order (string) (optional)

Field and direction to sort the returned data. Direction must be ASC or DESC. Default is first_name DESC. The following fields can be sorted - id, first_name, last_name, email_address, username, and custom_field_ followed by the custom field key e.g. custom_field_department. Administrators can also sort by account_expiry, created, email_verified, exempt_global_inactivity_policy, failed_logins, is_deleted, last_active_on_app, last_active_on_ssapi, last_logged_in, last_login_type, mfa_enabled, modified, role and status.

Example:

GET /api/ss/users?order=last_name:DESC HTTP/1.1

userId (string) (optional)

ID of user(s) to include. Add multiple for more than one user e.g. ?userId=id1&userId=id2

Example:

firstName (string) (optional)

First name of the user.

Example:

lastName (string) (optional)

Last name of the user.

Example:

email (string) (optional)

Email address of the user.

Example:

username (string) (optional)

Username of the user. This is typically the email address unless your tenant is configured otherwise.

Example:

Example

The following example is a cURL request to get all users with the first name Bob.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.

Response

Response contains an array of user objects.

Last updated