Python
from datagrid_ai import Datagrid client = Datagrid( api_key="My API Key", ) teamspace_user = client.organization.teamspaces.users.update( user_id="user_id", teamspace_id="teamspace_id", role="admin", ) print(teamspace_user.id)
{ "id": "<string>", "email": "[email protected]", "first_name": "<string>", "last_name": "<string>", "permissions": { "role": "owner", "agent_ids": [ "<string>" ] } }
Update user permissions in the teamspace.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the user
The ID of the teamspace
Represents a user in a teamspace
admin
member
agents-only
agent-specific
The agent IDs that the user has access to, if the role is agent-specific.
User updated successfully
The unique identifier of the user
The email address of the user
The first name of the user
The last name of the user
The permissions assigned to the user in the teamspace
Show child attributes
The role assigned to the user. Available roles:
owner
collaborator