List Postgres Gateway Users
- async AsyncCogniteClient.postgres_gateway.users.list(
- limit: int = 25,
-
List all users in a given project.
- Parameters:
limit (int) – Limits the number of results to be returned.
- Returns:
A list of users
- Return type:
Examples
List users:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> user_list = client.postgres_gateway.users.list(limit=5)
Iterate over users, one-by-one:
>>> for user in client.postgres_gateway.users(): ... user # do something with the user
Iterate over chunks of users to reduce memory load:
>>> for user_list in client.postgres_gateway.users(chunk_size=25): ... user_list # do something with the users