User
- class lightning_sdk.User(name=None)
Bases:
OwnerRepresents a user owner of teamspaces and studios.
Note
Arguments will be automatically inferred from environment variables if possible, unless explicitly specified
- create_teamspace(name)
Create a new teamspace owned by this user.
Can only be called for the currently authenticated user.
- Parameters:
- Returns:
The newly created teamspace.
- Return type:
- Raises:
ValueError – If called for a user other than the authenticated user.
- delete_secret(key)
Delete an encrypted secret for the user.
- Parameters:
- Raises:
ValueError – If the key contains invalid characters or does not exist.
- Return type:
- set_secret(key, value)
Set an encrypted secret for the user.
- property id: str
The user’s ID.
- property name: str
The user’s name.
- property organizations: List[Organization]
All organizations the user belongs to.
Can only be retrieved for the currently authenticated user.
- Returns:
The organizations this user is a member of.
- Return type:
- Raises:
ValueError – If called for a user other than the authenticated user.
Was this page helpful?
Thanks for the feedback.