GET /api/positions

Description

Returns list of persons positions, with reference to which organisation objects the positions belong to.

Parameters

user_name

String.  Optional. Username of person. If not given, will return positions for logged in person.

Return

Array of Position objects.

Security

Superuser, person’s manager and self

GET /api/roles

Description

Returns list of person’s roles, including positions.

Parameters

user_name

String.  Optional. Username of person. If not given, will return positions for logged in person.

competence_id

Integer.  Optional. Return a list of roles that this competence is defined as either mandatory or optional for. This attribute will override user_name if defined. Please not: The APIRole object will be tagged with an attribute called mandatory, which is True if competence is required for role, else False if optional

state 

List of strings. Optional. When competence_id is specified, it is possible to specify whenter to fetch roles for which the competence is either 'mandatory' or 'optional' . Default is to return both mandatory and optional.

Return

Array of Role objects.

Security

Superuser, person’s manager and self