Python
from datagrid_ai import Datagrid client = Datagrid( api_key="My API Key", ) client.organization.teamspaces.users.delete( user_id="user_id", teamspace_id="teamspace_id", )
Revoke a user’s permissions from 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
User revoked successfully