Skip to content
Fabian Steiner edited this page Nov 4, 2026 · 2 revisions

Person

from xurrent import Person · module xurrent.people · API resource /people · Xurrent API docs

A person (user) of the account; Person.get_me() returns the API user.

Back to the overview

Fields

The named arguments of the constructor. Every other field of the API response is set as an attribute as well.

Field Type Default Converted to
id
name str None
primary_email str None
site None Site
organization None Organization

Class methods

get_by_id

Person.get_by_id(connection_object: XurrentApiHelper, id)

API: GET /people/{id}

get_me

Person.get_me(connection_object: XurrentApiHelper)

Retrieve the person object for the authenticated user.

API: GET /people/me

get_people

Person.get_people(connection_object: XurrentApiHelper, predefinedFilter: PeoplePredefinedFilter = None, queryfilter: dict = None) -> List[T]

API: GET /people · Enums: PeoplePredefinedFilter

create

Person.create(connection_object: XurrentApiHelper, data: dict)

Create a new person object.

  • connection_object: Xurrent Connection object
  • data: Data dictionary (containing the data for the new person)

API: POST /people

Methods

ref_str

person.ref_str() -> str

Return a string representation of the object.

get_teams

person.get_teams() -> List['Team']

Retrieve the teams of the person.

API: GET /people/{id}/teams · Uses: Team

update

person.update(data)

API: PATCH /people/{id}

disable

person.disable(prefix: str = '', postfix: str = '')

Disable the person and update the name.

  • prefix: Prefix to add to the name
  • postfix: Postfix to add to the name
  • Returns: Updated person object

enable

person.enable()

Enable the person.

archive

person.archive()

Archive the person.

API: POST /people/{id}/archive

trash

person.trash()

Trash the person.

API: POST /people/{id}/trash

restore

person.restore()

Restore the person.

API: POST /people/{id}/restore

get_cis

person.get_cis() -> List

Retrieve configuration items for this person instance.

API: GET /people/{id}/cis · Uses: ConfigurationItem

get_addresses

person.get_addresses() -> List[dict]

Retrieve addresses for this person instance.

API: GET /people/{id}/addresses

get_contacts

person.get_contacts() -> List[dict]

Retrieve contact information for this person instance.

API: GET /people/{id}/contacts

get_permissions

person.get_permissions() -> List[dict]

Retrieve permissions for this person instance.

API: GET /people/{id}/permissions

get_ci_coverages

person.get_ci_coverages() -> List[dict]

Retrieve CI coverages for this person instance.

API: GET /people/{id}/ci_coverages

get_sla_coverages

person.get_sla_coverages() -> List[dict]

Retrieve SLA coverages for this person instance.

API: GET /people/{id}/sla_coverages

get_service_coverages

person.get_service_coverages() -> List[dict]

Retrieve service coverages for this person instance.

API: GET /people/{id}/service_coverages

get_out_of_office_periods

person.get_out_of_office_periods() -> List

Retrieve out-of-office periods for this person instance.

API: GET /people/{id}/out_of_office_periods · Uses: OutOfOfficePeriod

get_skill_pools

person.get_skill_pools() -> List

Retrieve skill pools for this person instance.

API: GET /people/{id}/skill_pools · Uses: SkillPool

Enums

PeoplePredefinedFilter

Used by: Person.get_people

Value Description
disabled List all disabled people
enabled List all enabled people
internal List all internal people
directory List all people registered in the directory account of the support domain account from which the data is requested
support_domain List all people registered in the account from which the data is requested (and not the related directory account)

Cross references

Uses:

Used by:

Clone this wiki locally