snowflake.core.user.UserResource

class snowflake.core.user.UserResource(name: str, collection: UserCollection)

Bases: ObjectReferenceMixin[UserCollection]

Attributes

root

Methods

__init__(name: str, collection: UserCollection) None
delete() None

Delete this user.

drop() None

Drop this user.

Example

Use user ref to delete. >>> user_ref.drop() >>> root.users[“test_user”].drop()

fetch() UserModel

Fetch the user details.

Example

>>> user_ref = root.users["test_user"].fetch()
>>> user_ref.first_name
Copy