GET
/
organization
/
teamspaces
/
{teamspace_id}
/
users
/
{user_id}
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
teamspace_user = client.organization.teamspaces.users.retrieve(
    user_id="user_id",
    teamspace_id="teamspace_id",
)
print(teamspace_user.id)
{
  "id": "<string>",
  "email": "jsmith@example.com",
  "first_name": "<string>",
  "last_name": "<string>",
  "permissions": {
    "role": "owner",
    "agent_ids": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The ID of the user

teamspace_id
string
required

The ID of the teamspace

Response

200 - application/json

User details

Represents a user in a teamspace