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
Field | Type | Description |
---|---|---|
orgId | int | ID of the requested organization |
Response
List of roles (see below).
Role
Field | Type | Description |
---|---|---|
id | int | Role ID |
dateCreation | datetime | Creation date |
name | string | Role name |
createProjects | bool | true if this role allows to create projects, false otherwise |
manageProjects | bool | true if this role allows to manage projects, false otherwise |
prioritizeProjects | bool | true if this role allows to prioritize projects, false otherwise |
notifyProjectCreation | bool | true if this role make users notified when a project is created, false otherwise |
users | array | List of user IDs (integers) |