Repository navigation
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.
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 |
Person.get_by_id(connection_object: XurrentApiHelper, id)API: GET /people/{id}
Person.get_me(connection_object: XurrentApiHelper)Retrieve the person object for the authenticated user.
API: GET /people/me
Person.get_people(connection_object: XurrentApiHelper, predefinedFilter: PeoplePredefinedFilter = None, queryfilter: dict = None) -> List[T]API: GET /people · Enums: PeoplePredefinedFilter
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
person.ref_str() -> strReturn a string representation of the object.
person.get_teams() -> List['Team']Retrieve the teams of the person.
API: GET /people/{id}/teams · Uses: Team
person.update(data)API: PATCH /people/{id}
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
person.enable()Enable the person.
person.archive()Archive the person.
API: POST /people/{id}/archive
person.trash()Trash the person.
API: POST /people/{id}/trash
person.restore()Restore the person.
API: POST /people/{id}/restore
person.get_cis() -> ListRetrieve configuration items for this person instance.
API: GET /people/{id}/cis · Uses: ConfigurationItem
person.get_addresses() -> List[dict]Retrieve addresses for this person instance.
API: GET /people/{id}/addresses
person.get_contacts() -> List[dict]Retrieve contact information for this person instance.
API: GET /people/{id}/contacts
person.get_permissions() -> List[dict]Retrieve permissions for this person instance.
API: GET /people/{id}/permissions
person.get_ci_coverages() -> List[dict]Retrieve CI coverages for this person instance.
API: GET /people/{id}/ci_coverages
person.get_sla_coverages() -> List[dict]Retrieve SLA coverages for this person instance.
API: GET /people/{id}/sla_coverages
person.get_service_coverages() -> List[dict]Retrieve service coverages for this person instance.
API: GET /people/{id}/service_coverages
person.get_out_of_office_periods() -> ListRetrieve out-of-office periods for this person instance.
API: GET /people/{id}/out_of_office_periods · Uses: OutOfOfficePeriod
person.get_skill_pools() -> ListRetrieve skill pools for this person instance.
API: GET /people/{id}/skill_pools · Uses: SkillPool
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) |
Uses:
-
ConfigurationItem:
get_cis() -
Organization:
organization -
OutOfOfficePeriod:
get_out_of_office_periods() -
Site:
site -
SkillPool:
get_skill_pools() -
Team:
get_teams()
Used by:
-
Organization:
get_people(),manager,substitute -
OutOfOfficePeriod:
approval_delegate,person -
Problem:
manager,member -
Product:
workflow_manager -
Project:
manager -
ProjectTask:
manager -
Release:
manager -
Request:
created_by,member,requested_by,requested_for -
RequestTemplate:
member,workflow_manager -
Risk:
manager -
Service:
availability_manager,capacity_manager,change_manager,continuity_manager,knowledge_manager,problem_manager,release_manager,service_owner -
ShopOrderLine:
requested_by,requested_for -
SkillPool:
get_members(),manager -
Team:
get_members() -
UiExtension:
created_by,updated_by -
Workflow:
manager -
WorkflowTemplate:
workflow_manager
- XurrentApiHelper
- Calendar
- ClosureCode
- ConfigurationItem
- Contract
- CustomCollection
- CustomCollectionElement
- EffortClass
- Holiday
- KnowledgeArticle
- Organization
- OutOfOfficePeriod
- Person
- Problem
- Product
- ProductCategory
- Project
- ProjectTask
- Release
- Request
- RequestTemplate
- Risk
- Service
- ServiceInstance
- ServiceOffering
- ShopArticle
- ShopArticleCategory
- ShopOrderLine
- Site
- SkillPool
- Task
- Team
- TimeAllocation
- UiExtension
- Workflow
- WorkflowTemplate