Get Users

GET /users

This API call is used to retrieve users.

This API call can be executed with or without parameters. When called without any parameters, it will return all users. However, you can also include a searchText parameter to limit the response to a specific subset of users.

Note: If your system has a large number of users, it is recommended to include the page and size parameters in your API call for efficient pagination and retrieval of user data. This allows you to retrieve users in smaller, manageable batches.

Deactivated Users

Deactivated users will be returned from this call.

  • requests with the filter parameter active=true will exclude deactivated users from the response.

Query parameters

  • searchText string

    Find users whose username, first name, or last name begins with the specified searchText value.

  • active string

    Filter users by their activation status. Use "true" to return active users and "false" to return deactivated users.

  • lockedOut string

    Filter users based on their locked-out status. Use "true" to return locked-out users and "false" to return users who are not locked out.

  • page integer

    The page number, starting from 1, used in combination with the "size" parameter to retrieve results in a paginated format.

  • size integer

    The number of records to include in each page of results.

  • include string

    Specify additional information to include for the user. Options are "lastlogin" or "activities".

    Values are lastlogin or activities.

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • id string

      The unique identifier of the user.

    • userName string

      The username of the user.

    • name object
      Hide name attributes Show name attributes object
      • firstName string

        The first name of the user.

      • middleName string

        The middle name of the user.

      • lastName string

        The last name of the user.

      • displayName string

        The display name of the user.

    • email string
    • phoneNumber string
    • roles array[object]
      One of:
    • userAccess object
      Hide userAccess attributes Show userAccess attributes object
      • r2RReadOnly boolean

        Specifies whether the user has read only access to R2R Console.

      • r2RAdmin boolean

        Specifies whether the user has admin access to R2R Console.

      • r2rEnabled boolean

        Specifies whether the user has access to R2R Console.

      • accessAutomation boolean

        Specifies whether the user has access to Smart Automation.

      • accessCertification boolean

        Specifies whether the user has access to Certification.

      • accessClose boolean

        Specifies whether the user has access to Close.

      • accessCompliance boolean

        Specifies whether the user has access to Compliance.

      • accessComplete boolean

        Specifies whether the user has access to Complete.

      • accessOperationalMatching boolean

        Specifies whether the user has access to Match.

    • departmentId string

      The department code value.

    • locationId string

      The location code value.

    • programAdminRoleId string

      The program admin role.

    • match object
      Hide match attributes Show match attributes object
      • securityProfileId integer

        The security profile id.

      • disabled boolean

        Indicates if Match permission is disabled.

      • accessAllAccounts boolean

        Indicates if user has access to all accounts.

      • accessAllSectors boolean

        Indicates if user has access to all sectors.

      • operationalStructureIds array[integer]

        List of operational structure ids assigned to user.

      • sectorIds array[integer]

        List of sector ids assigned to user.

    • createdDate string

      The date and time when user was created.

    • active boolean

      Indicates whether the user is active or inactive.

    • lockedOut boolean

      Indicates whether the user is currently locked out from accessing the system.

  • 401 application/json

    Authentication Error. Invalid credentials.

    Hide response attributes Show response attributes object
    • code string
    • message string
    • description string
  • 403

    Authorization Error. Invalid role for request.

GET /users
curl \
 --request GET 'https://localhost:8080/users' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "id": "f1666d0e-b1ff-4367-b678-ca711623715c",
    "name": {
      "lastName": "User",
      "firstName": "Test",
      "middleName": "A",
      "displayName": "Test User1"
    },
    "email": "testuser1@localhost.local",
    "match": {
      "disabled": false,
      "sectorIds": [
        1,
        2,
        3
      ],
      "accessAllSectors": true,
      "accessAllAccounts": false,
      "securityProfileId": 1,
      "operationalStructureIds": [
        10,
        11,
        12
      ]
    },
    "roles": [
      {
        "type": "Close",
        "value": "CloseAdmin"
      },
      {
        "type": "Certification",
        "value": "Reconciler"
      },
      {
        "type": "JournalEntry",
        "value": "Preparer"
      }
    ],
    "active": true,
    "userName": "testuser1",
    "lockedOut": false,
    "locationId": "Americas",
    "userAccess": {
      "r2RAdmin": false,
      "r2REnabled": true,
      "accessClose": true,
      "r2RReadOnly": true,
      "accessComplete": false,
      "accessAutomation": false,
      "accessCompliance": true,
      "accessCertification": true,
      "accessOperationalMatching": false
    },
    "createdDate": "2023-06-20T18:22:57Z",
    "phoneNumber": "555-555-5555",
    "departmentId": "SALES",
    "programAdminRoleId": "Admin"
  },
  {
    "id": "b8c7fd11-10b5-454d-93a4-c854fcdaae81",
    "name": {
      "lastName": "User2",
      "firstName": "Test",
      "middleName": "A",
      "displayName": "Test User2"
    },
    "email": "testuser2@localhost.local",
    "match": {
      "disabled": false,
      "sectorIds": [
        4
      ],
      "accessAllSectors": true,
      "accessAllAccounts": false,
      "securityProfileId": 2,
      "operationalStructureIds": [
        14
      ]
    },
    "roles": [],
    "active": true,
    "userName": "testuser2",
    "lockedOut": false,
    "locationId": "",
    "userAccess": {
      "r2RAdmin": false,
      "r2REnabled": false,
      "accessClose": false,
      "r2RReadOnly": false,
      "accessComplete": false,
      "accessAutomation": false,
      "accessCompliance": false,
      "accessCertification": false,
      "accessOperationalMatching": false
    },
    "createdDate": "2023-06-20T18:22:58Z",
    "phoneNumber": "",
    "departmentId": "",
    "programAdminRoleId": "Admin"
  }
]
Response examples (401)
{
  "code": "900901",
  "message": "Invalid Credentials",
  "description": "Access failure for API: /api/admin/v1.1.0, version: v1.1.0 status: (900901) - Invalid Credentials. Make sure you have provided the correct security credentials"
}