getRoles

Description

Returns the list of roles of an organization.
The current user must have administrator rights.

URL

https://api.skriv.com/v1/organization/getRoles/orgId

FieldTypeDescription
orgIdintID of the requested organization

Response

List of roles (see below).

Role

FieldTypeDescription
idintRole ID
dateCreationdatetimeCreation date
namestringRole name
createProjectsbooltrue if this role allows to create projects, false otherwise
manageProjectsbooltrue if this role allows to manage projects, false otherwise
prioritizeProjectsbooltrue if this role allows to prioritize projects, false otherwise
notifyProjectCreationbooltrue if this role make users notified when a project is created, false otherwise
usersarrayList of user IDs (integers)