getUsers
List DataSync users. Optional filters/paging are set via the returned builder.
Filtering and sorting are only allowed on properties the entity class marks as filterable via their filtering mode (none / simple / full), which also determines which of filterFast / filter / sort a property may be used with — see filterFast, filter, and sort for the exact per-parameter rules. For the built-in User class the filterable set is name and type, and a subclass that extends User may declare additional filterable properties. These are filterable indexes over /payload/name and /payload/type — both nullable, not a required or exclusive payload schema; the payload stays arbitrary JSON. In addition, the built-in fields id, createdAt, updatedAt, and status behave as full and are always filterable and sortable on any class. The built-in User class is defined at the GLOBAL class level.
Results are scoped to the caller's access token: only users the token is permitted to read (get) are returned. Users the token cannot read are silently omitted — the call does not error and does not return a 403 for the un-readable users. This token scoping is applied before filterFast / filter / sort. When the PubNub instance is configured with a secretKey (a trusted server-side deployment, never a client — the secretKey must not be shipped to clients), or when using a token whose grants cover the whole result set, no permission-based filtering is applied and all matching users are returned, subject only to filterFast / filter / sort and limit paging.