class

OpenAI::User

Inherits JSON::Serializable < Reference < Object

Represents an individual user within an organization.

Constructors

new(object : UserObject = UserObject::OrganizationUser, id : String = "", name : String = "", email : String = "", role : UserRole = UserRole::Owner, added_at : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

added_at

The Unix timestamp (in seconds) of when the user was added.

Source
added_at=(added_at : Int64)

The Unix timestamp (in seconds) of when the user was added.

Source
email

The email address of the user

Source
email=(email : String)

The email address of the user

Source
id

The identifier, which can be referenced in API endpoints

Source
id=(id : String)

The identifier, which can be referenced in API endpoints

Source
name

The name of the user

Source
name=(name : String)

The name of the user

Source
object

The object type, which is always organization.user

Source
object=(object : UserObject)

The object type, which is always organization.user

Source
role

owner or reader

Source
role=(role : UserRole)

owner or reader

Source