Skip to main content
Version: 2.31.0

User

The User represents a user within Edge, detailing the essential information and privileges assigned to a user. It includes a unique identifier and personal information, such as the user's username, first and last names, and email address. It also outlines administrative privileges, specifying whether the user holds server admin status. Additionally, it encompasses organizational and licensing information, including the user's home organization and the specific license name associated with their account.

# Initialize user
user = User("test-user-1", "Bob", "User", "bob@user.com")

# Create user
edge.admin.add_user(user)

Properties​

uid​

Property (str). User unique ID.

user_name​

Property (str). User name from login.

first_name​

Property (str). Display first name.

last_name​

Property (str). Display last name.

email​

Property (str). User email.

server_admin​

Property (bool). If True, is a server admin.

home_org​

Property (str). User's home organization.

license_name​

Property (str). User's license.

Methods​

to_dict​

to_dict() -> dict

Translates the connection as a dictionary for serialization.

Returns​

dict Connection contents as a dictionary.