ExtendedUser#

class ExtendedUser[source]#

The extended JSON representation of a user.

email: Optional[str]#

The email of the user. This will only be provided for the currently logged in user.

hidden: bool#

Can this user see hidden assignments at least in one course.

payments: Sequence[Transaction]#

The payments this user did. This will only be provided for the currently logged in user. For other users it will be an empty list.

used_coupons: Sequence[Union[TenantCouponUsage, CourseCouponUsage]]#

The coupons used by this user. This will only be provided for the currently logged in user. For other users it will be an empty list.

permissions: Union[Just[GlobalPermMap], _Nothing[GlobalPermMap]] = Nothing#

The permissions of the user. This will only be present if requested.

group: Optional[Group]#

If this user is a wrapper user for a group this will contain this group, otherwise it will be null.

id: int#

The is the id of this user

name: Optional[str]#

The fullname of the user. This might contain a first and last name, however this is not guaranteed. This might be None if the PII for this user cannot be retrieved anymore.

username: str#

The username of this user.

is_test_student: bool#

Is this user a test student.

tenant_id: Optional[str]#

The tenant of the user