Iterate over Postgres Gateway Users

async AsyncCogniteClient.postgres_gateway.users.__call__(
chunk_size: int | None = None,
limit: int | None = None,
) AsyncIterator[User] | AsyncIterator[UserList]

Iterate over users

Fetches user as they are iterated over, so you keep a limited number of users in memory.

Parameters:
  • chunk_size (int | None) – Number of users to return in each chunk. Defaults to yielding one user at a time.

  • limit (int | None) – Maximum number of users to return. Defaults to return all.

Yields:

User | UserList – yields User one by one if chunk_size is not specified, else UserList objects.