Function getUsers

  • Returns a list of users using cursor-based pagination.

    Parameters

    • query: {
          fields?: string;
          filter?: string;
          limit?: number;
          next?: string;
          prev?: string;
          sort?:
              | "subject"
              | "clientId"
              | "status"
              | "id"
              | "name"
              | "+status"
              | "-status"
              | "email"
              | "-name"
              | "+name"
              | "+createdAt"
              | "-createdAt"
              | "createdAt"
              | "+id"
              | "-id"
              | "_id"
              | "+_id"
              | "-_id"
              | "tenantId"
              | "+tenantId"
              | "-tenantId"
              | "+clientId"
              | "-clientId"
              | "+subject"
              | "-subject"
              | "+email"
              | "-email"
              | "inviteExpiry"
              | "+inviteExpiry"
              | "-inviteExpiry";
          totalResults?: boolean;
      }

      an object with query parameters

      • Optionalfields?: string

        A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted.

      • Optionalfilter?: string

        The advanced filtering to use for the query. Refer to RFC 7644 for the syntax. Cannot be combined with any of the fields marked as deprecated. All conditional statements within this query parameter are case insensitive.

        The following fields support the eq operator: id, subject, name, email, status, clientId, assignedRoles.id assignedRoles.name, assignedGroups.id, assignedGroupsAssignedRoles.name

        Additionally, the following fields support the co operator: name, email, subject

        Queries may be rate limited if they differ greatly from these examples:

        (id eq "62716ab404a7bd8626af9bd6" or id eq "62716ac4c7e500e13ff5fa22") and (status eq "active" or status eq "disabled")
        
        name co "query" or email co "query" or subject co "query" or id eq "query" or assignedRoles.name eq "query"
        

        Any filters for status must be grouped together and applied to the whole query.

        Valid:

        (name eq "Bob" or name eq "Alice") and (status eq "active" or status eq "disabled")
        

        Invalid:

        name eq "Bob" or name eq "Alice" and (status eq "active" or status eq "disabled")
        
      • Optionallimit?: number
      • Optionalnext?: string
      • Optionalprev?: string
      • Optionalsort?:
            | "subject"
            | "clientId"
            | "status"
            | "id"
            | "name"
            | "+status"
            | "-status"
            | "email"
            | "-name"
            | "+name"
            | "+createdAt"
            | "-createdAt"
            | "createdAt"
            | "+id"
            | "-id"
            | "_id"
            | "+_id"
            | "-_id"
            | "tenantId"
            | "+tenantId"
            | "-tenantId"
            | "+clientId"
            | "-clientId"
            | "+subject"
            | "-subject"
            | "+email"
            | "-email"
            | "inviteExpiry"
            | "+inviteExpiry"
            | "-inviteExpiry"
      • OptionaltotalResults?: boolean
    • Optionaloptions: ApiCallOptions

    Returns Promise<GetUsersHttpResponse>

    GetUsersHttpError