Last updated 11 months ago
Was this helpful?
50
0
admin
manager
member
foo@bar.com
from portkey_ai import Portkey # Initialize the Portkey client portkey = Portkey( api_key="PORTKEY_API_KEY", ) # Get user from workspace users = portkey.admin.workspaces.users.list( workspace_id="WORKSPACE_SLUG", ) print(users)
OK
{ "total": 2, "object": "list", "data": [ { "object": "workspace-user", "id": "25afb7bd-f98a-11ee-85fe-0e27d7367987", "first_name": "John", "last_name": "Doe", "org_role": "member", "role": "member", "created_at": "2024-01-01T00:00:00.000Z", "last_updated_at": "2024-01-01T00:00:00.000Z", "status": "active" } ] }