List the agency's people
Lists people of the agency the request acts for, a page at a time with limit and nextToken; hasMore says whether another page follows. An admin gets the agency's users, each with their membership settings there, and its pending invitations in items; an advisor gets the accounts of the travelers they serve at the agency. For an admin, the where and fields query parameters narrow the rows and the fields each one carries. Advisors and admins only. Errors: 400 ERROR_UNAUTHORIZED for any other caller.
Authorization
Query parameters
- fieldsoptionalstring
For an admin: the attributes each row carries, comma-separated, where a dotted path reaches inside one. type, userId, companyName, invitedBy and tenantId come too where the row has them, and so do a person's settings in the agency whenever they are a member. A person is listed only with a fullName of two or more characters, so fields without fullName list invitations alone.
- whereoptionalstring
For an admin: which rows to keep. A condition is field:operator:value with eq, neq, gt, gte, lt, lte, like, beginsWith, exists, inq or between (inq and between take values joined by |), several of one object joined by commas; and(…;…) and or(…;…) combine them. Example: and(deleted:neq:true;role:eq:advisor).
Returns
200
OK